[gtk+] x11: Initialize GdkWindowAttr struct memory



commit 23b629e27cd1449b0af708e69af94d532a577270
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Jan 7 18:55:04 2016 +0100

    x11: Initialize GdkWindowAttr struct memory
    
    Valgrind complains about jumps based on uninitialized values
    otherwise.

 gdk/x11/gdkdnd-x11.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/x11/gdkdnd-x11.c b/gdk/x11/gdkdnd-x11.c
index 86ecb82..69f1b94 100644
--- a/gdk/x11/gdkdnd-x11.c
+++ b/gdk/x11/gdkdnd-x11.c
@@ -1939,7 +1939,7 @@ gdk_drag_do_leave (GdkX11DragContext *context_x11,
 static GdkWindow *
 create_drag_window (GdkScreen *screen)
 {
-  GdkWindowAttr attrs;
+  GdkWindowAttr attrs = { 0 };
   guint mask;
 
   attrs.x = attrs.y = 0;


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