Skip to content

Commit

Permalink
Valgrind fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 11, 2005
1 parent 8b4199c commit fd2f2a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/video/x11/SDL_x11events.c
Expand Up @@ -159,6 +159,7 @@ static int X11_DispatchEvent(_THIS)
int posted;
XEvent xevent;

memset(&xevent, '\0', sizeof (XEvent)); /* valgrind fix. --ryan. */
XNextEvent(SDL_Display, &xevent);

posted = 0;
Expand Down

0 comments on commit fd2f2a8

Please sign in to comment.