Commit 922a04d0 authored by Ryan C. Gordon's avatar Ryan C. Gordon

Fixed compiler warnings for uninitialized variables.

parent 9bfdb9ee
......@@ -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) {
......
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