projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7e965f
)
icon deserialisation: fix uninitialised variable
author
Ryan Lortie
<desrt@desrt.ca>
Thu, 30 May 2013 01:49:53 +0000
(21:49 -0400)
committer
Ryan 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
patch
|
blob
|
history
diff --git
a/gio/gicon.c
b/gio/gicon.c
index
624a168
..
0e998b1
100644
(file)
--- 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);