diff src/video/x11/SDL_x11window.c @ 4524:a256e1dadf3f

Zero any fields not explicitly filled in.
author Sam Lantinga <slouken@libsdl.org>
date Wed, 14 Jul 2010 07:25:07 -0700
parents a4da6b906abb
children f06faa886423
line wrap: on
line diff
--- a/src/video/x11/SDL_x11window.c	Wed Jul 14 01:02:18 2010 -0700
+++ b/src/video/x11/SDL_x11window.c	Wed Jul 14 07:25:07 2010 -0700
@@ -972,6 +972,7 @@
     if (X11_IsWindowMapped(_this, window)) {
         XEvent e;
 
+        SDL_zero(e);
         e.xany.type = ClientMessage;
         e.xclient.message_type = _NET_WM_STATE;
         e.xclient.format = 32;