From c235087ba44cd090623510d50371f4444538a49c Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Wed, 29 May 2013 21:49:53 -0400 Subject: [PATCH] icon deserialisation: fix uninitialised variable Deserialising an emblemed icon would make uninitialised use of a variable in the error case. Fix that. --- gio/gicon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gio/gicon.c b/gio/gicon.c index 624a168..0e998b1 100644 --- a/gio/gicon.c +++ b/gio/gicon.c @@ -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); -- 2.7.4