[gtk+] gtkstyleproperties: zero GValue out before using G_VALUE_COLLECT_INIT()



commit b68172b2c69811d0f9681f4814afbc747dc504fc
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon May 30 19:18:41 2011 +0200

    gtkstyleproperties: zero GValue out before using G_VALUE_COLLECT_INIT()
    
    Fixes invalid reads in valgrind

 gtk/gtkstyleproperties.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkstyleproperties.c b/gtk/gtkstyleproperties.c
index 6707372..f6671f7 100644
--- a/gtk/gtkstyleproperties.c
+++ b/gtk/gtkstyleproperties.c
@@ -620,7 +620,7 @@ gtk_style_properties_set_valist (GtkStyleProperties *props,
     {
       const GtkStyleProperty *node;
       gchar *error = NULL;
-      GValue val;
+      GValue val = { 0 };
 
       node = _gtk_style_property_lookup (property_name);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]