[gtk+] Don't forget to initialize a variable



commit 7bbe537915bf890766c1d2510b420636bee01ebc
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jun 27 16:46:33 2011 -0400

    Don't forget to initialize a variable
    
    Pointed out by clang in bug 653333.

 gtk/gtktoolpalette.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtktoolpalette.c b/gtk/gtktoolpalette.c
index e0084fa..f3ae488 100644
--- a/gtk/gtktoolpalette.c
+++ b/gtk/gtktoolpalette.c
@@ -526,6 +526,8 @@ gtk_tool_palette_size_allocate (GtkWidget     *widget,
       GtkToolItemGroupInfo *group = g_ptr_array_index (palette->priv->groups, i);
       gint size;
 
+      group_sizes[i] = 0;
+
       if (!group->widget)
         continue;
 



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