changeset 1159:787b8d2c23e4

Valgrind fix.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 11 Oct 2005 23:57:04 +0000
parents ec446adf8cb2
children 72c6c3e5bb85
files src/video/x11/SDL_x11events.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/x11/SDL_x11events.c	Tue Oct 11 20:05:54 2005 +0000
+++ b/src/video/x11/SDL_x11events.c	Tue Oct 11 23:57:04 2005 +0000
@@ -159,6 +159,7 @@
 	int posted;
 	XEvent xevent;
 
+	memset(&xevent, '\0', sizeof (XEvent));  /* valgrind fix. --ryan. */
 	XNextEvent(SDL_Display, &xevent);
 
 	posted = 0;