Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Removed duplicate memset() calls.
- Loading branch information
Showing
with
0 additions
and
2 deletions.
-
+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) ) { |
|
|