Commit 5e4d01fd authored by Ryan C. Gordon's avatar Ryan C. Gordon

Removed duplicate memset() calls.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403945
parent 0dce7571
...@@ -109,10 +109,8 @@ static SDL_VideoDevice *X11_CreateDevice(int devindex) ...@@ -109,10 +109,8 @@ static SDL_VideoDevice *X11_CreateDevice(int devindex)
SDL_memset(device, 0, (sizeof *device)); SDL_memset(device, 0, (sizeof *device));
device->hidden = (struct SDL_PrivateVideoData *) device->hidden = (struct SDL_PrivateVideoData *)
SDL_malloc((sizeof *device->hidden)); SDL_malloc((sizeof *device->hidden));
SDL_memset(device->hidden, 0, (sizeof *device->hidden));
device->gl_data = (struct SDL_PrivateGLData *) device->gl_data = (struct SDL_PrivateGLData *)
SDL_malloc((sizeof *device->gl_data)); SDL_malloc((sizeof *device->gl_data));
SDL_memset(device->gl_data, 0, (sizeof *device->gl_data));
} }
if ( (device == NULL) || (device->hidden == NULL) || if ( (device == NULL) || (device->hidden == NULL) ||
(device->gl_data == NULL) ) { (device->gl_data == NULL) ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment