g_variant_dict_lookup is unclear about what happens on failure
@pborelli
Submitted by Paolo Borelli Link to original bug (#735372)
Description
The docs do not make clear if the passed in variable will be unaffected when the variant is not unpacked.
E.g. can I rely on
int foo = FOO_DEFAULT; // set default value g_variant_dict_lookup(dict, "blah", "i", &foo); // Fails // can I rely here on foo still being FOO_DEFAULT ?
Or do I need to do
int foo; if (!g_variant_dict_lookup(...)) { foo = FOO_DEFAULT; }