Zero any fields not explicitly filled in.
authorSam Lantinga
Wed, 14 Jul 2010 07:25:07 -0700
changeset 4524a256e1dadf3f
parent 4523 657bea918a30
child 4525 3abf0b9cafad
Zero any fields not explicitly filled in.
src/video/x11/SDL_x11events.c
src/video/x11/SDL_x11window.c
     1.1 --- a/src/video/x11/SDL_x11events.c	Wed Jul 14 01:02:18 2010 -0700
     1.2 +++ b/src/video/x11/SDL_x11events.c	Wed Jul 14 07:25:07 2010 -0700
     1.3 @@ -381,6 +381,7 @@
     1.4                  req->requestor, req->target);
     1.5  #endif
     1.6  
     1.7 +            SDL_zero(sevent);
     1.8              sevent.xany.type = SelectionNotify;
     1.9              sevent.xselection.selection = req->selection;
    1.10              sevent.xselection.target = None;
     2.1 --- a/src/video/x11/SDL_x11window.c	Wed Jul 14 01:02:18 2010 -0700
     2.2 +++ b/src/video/x11/SDL_x11window.c	Wed Jul 14 07:25:07 2010 -0700
     2.3 @@ -972,6 +972,7 @@
     2.4      if (X11_IsWindowMapped(_this, window)) {
     2.5          XEvent e;
     2.6  
     2.7 +        SDL_zero(e);
     2.8          e.xany.type = ClientMessage;
     2.9          e.xclient.message_type = _NET_WM_STATE;
    2.10          e.xclient.format = 32;