icon deserialisation: fix uninitialised variable
authorRyan Lortie <desrt@desrt.ca>
Thu, 30 May 2013 01:49:53 +0000 (21:49 -0400)
committerRyan Lortie <desrt@desrt.ca>
Thu, 30 May 2013 01:49:53 +0000 (21:49 -0400)
Deserialising an emblemed icon would make uninitialised use of a
variable in the error case.  Fix that.

gio/gicon.c

index 624a168..0e998b1 100644 (file)
@@ -546,6 +546,8 @@ g_icon_deserialize_emblemed (GVariant *value)
 
       g_object_unref (main_icon);
     }
+  else
+    icon = NULL;
 
   g_variant_iter_free (emblems);
   g_variant_unref (icon_data);