Removed duplicate memset() calls. SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Tue, 29 Sep 2009 13:40:34 +0000
branchSDL-1.2
changeset 4266 62849663f20a
parent 4265 c7b1d5eaa77d
child 4267 27f972dd5aff
Removed duplicate memset() calls.
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) ) {