[gtk+] Avoid an uninitialized variable access



commit 137e6f4d5ff4a86a1f28276fd7431281a54b8c74
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Jun 15 23:36:10 2013 -0400

    Avoid an uninitialized variable access

 testsuite/gtk/defaultvalue.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/gtk/defaultvalue.c b/testsuite/gtk/defaultvalue.c
index 55875a6..f960964 100644
--- a/testsuite/gtk/defaultvalue.c
+++ b/testsuite/gtk/defaultvalue.c
@@ -92,6 +92,7 @@ test_type (gconstpointer data)
   else if (g_type_is_a (type, GDK_TYPE_WINDOW))
     {
       GdkWindowAttr attributes;
+      attributes.wclass = GDK_INPUT_OUTPUT;
       attributes.window_type = GDK_WINDOW_TEMP;
       attributes.event_mask = 0;
       attributes.width = 100;


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