# HG changeset patch # User Ryan C. Gordon # Date 1129075024 0 # Node ID 787b8d2c23e4a2bda31b30984581dc336640797e # Parent ec446adf8cb2fd5d9c257c587dd8999f56eb2b30 Valgrind fix. diff -r ec446adf8cb2 -r 787b8d2c23e4 src/video/x11/SDL_x11events.c --- 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;