mirror of
https://github.com/yawut/SDL.git
synced 2026-10-02 21:26:41 -05:00
Removed duplicate memset() calls.
--HG-- branch : SDL-1.2
This commit is contained in:
@@ -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) ) {
|
||||
|
||||
Reference in New Issue
Block a user