From b68172b2c69811d0f9681f4814afbc747dc504fc Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Mon, 30 May 2011 19:18:41 +0200 Subject: [PATCH] gtkstyleproperties: zero GValue out before using G_VALUE_COLLECT_INIT() Fixes invalid reads in valgrind --- gtk/gtkstyleproperties.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkstyleproperties.c b/gtk/gtkstyleproperties.c index 67073726c0..f6671f7466 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);