diff src/video/x11/SDL_x11video.c @ 4266:62849663f20a SDL-1.2

Removed duplicate memset() calls.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 29 Sep 2009 13:40:34 +0000
parents b0c979816d67
children d48035d857d3
line wrap: on
line diff
--- 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) ) {