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 426662849663f20a
parent 4265 c7b1d5eaa77d
child 4267 27f972dd5aff
Removed duplicate memset() calls.
src/video/x11/SDL_x11video.c
     1.1 --- a/src/video/x11/SDL_x11video.c	Tue Sep 29 13:07:36 2009 +0000
     1.2 +++ b/src/video/x11/SDL_x11video.c	Tue Sep 29 13:40:34 2009 +0000
     1.3 @@ -109,10 +109,8 @@
     1.4  			SDL_memset(device, 0, (sizeof *device));
     1.5  			device->hidden = (struct SDL_PrivateVideoData *)
     1.6  					SDL_malloc((sizeof *device->hidden));
     1.7 -			SDL_memset(device->hidden, 0, (sizeof *device->hidden));
     1.8  			device->gl_data = (struct SDL_PrivateGLData *)
     1.9  					SDL_malloc((sizeof *device->gl_data));
    1.10 -			SDL_memset(device->gl_data, 0, (sizeof *device->gl_data));
    1.11  		}
    1.12  		if ( (device == NULL) || (device->hidden == NULL) ||
    1.13  		                         (device->gl_data == NULL) ) {