[glib] icon deserialisation: fix uninitialised variable
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] icon deserialisation: fix uninitialised variable
- Date: Thu, 30 May 2013 03:32:22 +0000 (UTC)
commit c235087ba44cd090623510d50371f4444538a49c
Author: Ryan Lortie <desrt desrt ca>
Date: Wed May 29 21:49:53 2013 -0400
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 files changed, 2 insertions(+), 0 deletions(-)
---
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]