Skip to content

Commit

Permalink
Removed duplicate memset() calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 29, 2009
1 parent e0886ef commit 7aeb3cd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/video/x11/SDL_x11video.c
Expand Up @@ -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) ) {
Expand Down

0 comments on commit 7aeb3cd

Please sign in to comment.