]> Pileus Git - ~andy/gtk/commitdiff
gtkstyleproperties: zero GValue out before using G_VALUE_COLLECT_INIT()
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 30 May 2011 17:18:41 +0000 (19:18 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 30 May 2011 17:18:41 +0000 (19:18 +0200)
Fixes invalid reads in valgrind

gtk/gtkstyleproperties.c

index 67073726c069247630a20a2a13ba54c106052fac..f6671f7466aac69909c789bb8a0337a8245387bd 100644 (file)
@@ -620,7 +620,7 @@ gtk_style_properties_set_valist (GtkStyleProperties *props,
     {
       const GtkStyleProperty *node;
       gchar *error = NULL;
     {
       const GtkStyleProperty *node;
       gchar *error = NULL;
-      GValue val;
+      GValue val = { 0 };
 
       node = _gtk_style_property_lookup (property_name);
 
 
       node = _gtk_style_property_lookup (property_name);