Fixed compiler warnings for uninitialized variables.

This commit is contained in:
Ryan C. Gordon
2011-11-09 00:27:44 -05:00
parent 57427cf80f
commit b7ab18db4c

View File

@@ -115,7 +115,10 @@ static SDL_bool
GetDisplayMode(_THIS, const void *moderef, SDL_DisplayMode *mode)
{
SDL_DisplayModeData *data;
long width, height, bpp, refreshRate;
long width = 0;
long height = 0;
long bpp = 0;
long refreshRate = 0;
data = (SDL_DisplayModeData *) SDL_malloc(sizeof(*data));
if (!data) {