Skip to content
Permalink
Browse files

Removed duplicate memset() calls.

  • Loading branch information
icculus committed Sep 29, 2009
1 parent e0886ef commit 7aeb3cd7dde12fd1acaeecfcf0dc1be15fd87e0c
Showing with 0 additions and 2 deletions.
  1. +0 −2 src/video/x11/SDL_x11video.c
@@ -109,10 +109,8 @@ static SDL_VideoDevice *X11_CreateDevice(int devindex)
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) ) {

0 comments on commit 7aeb3cd

Please sign in to comment.