Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Zero any fields not explicitly filled in.
  • Loading branch information
slouken committed Jul 14, 2010
1 parent 763f107 commit 79747a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/video/x11/SDL_x11events.c
Expand Up @@ -381,6 +381,7 @@ X11_DispatchEvent(_THIS)
req->requestor, req->target);
#endif

SDL_zero(sevent);
sevent.xany.type = SelectionNotify;
sevent.xselection.selection = req->selection;
sevent.xselection.target = None;
Expand Down
1 change: 1 addition & 0 deletions src/video/x11/SDL_x11window.c
Expand Up @@ -972,6 +972,7 @@ X11_SetWindowMaximized(_THIS, SDL_Window * window, SDL_bool maximized)
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;
Expand Down

0 comments on commit 79747a7

Please sign in to comment.