src/video/cocoa/SDL_cocoamodes.m
changeset 6072 8b473f33c766
parent 6044 35448a5ea044
child 6101 4b88086910d3
     1.1 --- a/src/video/cocoa/SDL_cocoamodes.m	Tue Nov 08 19:45:41 2011 -0500
     1.2 +++ b/src/video/cocoa/SDL_cocoamodes.m	Wed Nov 09 00:27:44 2011 -0500
     1.3 @@ -115,7 +115,10 @@
     1.4  GetDisplayMode(_THIS, const void *moderef, SDL_DisplayMode *mode)
     1.5  {
     1.6      SDL_DisplayModeData *data;
     1.7 -    long width, height, bpp, refreshRate;
     1.8 +    long width = 0;
     1.9 +    long height = 0;
    1.10 +    long bpp = 0;
    1.11 +    long refreshRate = 0;
    1.12  
    1.13      data = (SDL_DisplayModeData *) SDL_malloc(sizeof(*data));
    1.14      if (!data) {