# HG changeset patch # User Ryan C. Gordon # Date 1254231634 0 # Node ID 62849663f20ad200a4b0e6466c50fc8a8083527f # Parent c7b1d5eaa77ddb5dc43b264c6117fe762c6959ec Removed duplicate memset() calls. diff -r c7b1d5eaa77d -r 62849663f20a src/video/x11/SDL_x11video.c --- a/src/video/x11/SDL_x11video.c Tue Sep 29 13:07:36 2009 +0000 +++ b/src/video/x11/SDL_x11video.c Tue Sep 29 13:40:34 2009 +0000 @@ -109,10 +109,8 @@ SDL_memset(device, 0, (sizeof *device)); device->hidden = (struct SDL_PrivateVideoData *) SDL_malloc((sizeof *device->hidden)); - SDL_memset(device->hidden, 0, (sizeof *device->hidden)); device->gl_data = (struct SDL_PrivateGLData *) SDL_malloc((sizeof *device->gl_data)); - SDL_memset(device->gl_data, 0, (sizeof *device->gl_data)); } if ( (device == NULL) || (device->hidden == NULL) || (device->gl_data == NULL) ) {