Valgrind fix.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 11 Oct 2005 23:57:04 +0000
changeset 1159787b8d2c23e4
parent 1158 ec446adf8cb2
child 1160 72c6c3e5bb85
Valgrind fix.
src/video/x11/SDL_x11events.c
     1.1 --- a/src/video/x11/SDL_x11events.c	Tue Oct 11 20:05:54 2005 +0000
     1.2 +++ b/src/video/x11/SDL_x11events.c	Tue Oct 11 23:57:04 2005 +0000
     1.3 @@ -159,6 +159,7 @@
     1.4  	int posted;
     1.5  	XEvent xevent;
     1.6  
     1.7 +	memset(&xevent, '\0', sizeof (XEvent));  /* valgrind fix. --ryan. */
     1.8  	XNextEvent(SDL_Display, &xevent);
     1.9  
    1.10  	posted = 0;