# HG changeset patch # User Sam Lantinga # Date 1279117507 25200 # Node ID a256e1dadf3f414fa90e2c477209b1b587cff346 # Parent 657bea918a30132f64b4de9ebb49af8d100316e5 Zero any fields not explicitly filled in. diff -r 657bea918a30 -r a256e1dadf3f src/video/x11/SDL_x11events.c --- a/src/video/x11/SDL_x11events.c Wed Jul 14 01:02:18 2010 -0700 +++ b/src/video/x11/SDL_x11events.c Wed Jul 14 07:25:07 2010 -0700 @@ -381,6 +381,7 @@ req->requestor, req->target); #endif + SDL_zero(sevent); sevent.xany.type = SelectionNotify; sevent.xselection.selection = req->selection; sevent.xselection.target = None; diff -r 657bea918a30 -r a256e1dadf3f src/video/x11/SDL_x11window.c --- 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;