Improve the initial construction of the GVariant for the new LUC
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>
Thu, 19 Jul 2012 12:28:58 +0000 (13:28 +0100)
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>
Thu, 19 Jul 2012 16:01:21 +0000 (17:01 +0100)
commit92367ce3e9d9dc4d91380deb8f7c19af4effcbd6
tree4b49c71684c17afecdb77b7e1ba21ab73e10e31f
parentce5885b15b21ba0a89ef0915cb85efba642798bd
Improve the initial construction of the GVariant for the new LUC

The GVariantBuilder is now statically allocated on the stack to avoid
memory allocations at run-time. Using g_variant_builder_end() is used
to obtain the new GVariant rather than allocating a new one from the
contents of the builder separately.
boot-manager/boot-manager-service.c