Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11events.c @ 1159:787b8d2c23e4
Valgrind fix.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Tue, 11 Oct 2005 23:57:04 +0000 |
parents | df1a3218b468 |
children | 045f186426e1 |
comparison
equal
deleted
inserted
replaced
1158:ec446adf8cb2 | 1159:787b8d2c23e4 |
---|---|
157 static int X11_DispatchEvent(_THIS) | 157 static int X11_DispatchEvent(_THIS) |
158 { | 158 { |
159 int posted; | 159 int posted; |
160 XEvent xevent; | 160 XEvent xevent; |
161 | 161 |
162 memset(&xevent, '\0', sizeof (XEvent)); /* valgrind fix. --ryan. */ | |
162 XNextEvent(SDL_Display, &xevent); | 163 XNextEvent(SDL_Display, &xevent); |
163 | 164 |
164 posted = 0; | 165 posted = 0; |
165 switch (xevent.type) { | 166 switch (xevent.type) { |
166 | 167 |