Fixed compiler warnings for uninitialized variables.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 09 Nov 2011 00:27:44 -0500
changeset 60728b473f33c766
parent 6071 72f06ae88e7e
child 6073 9738f2a8eee4
Fixed compiler warnings for uninitialized variables.
src/video/cocoa/SDL_cocoamodes.m
     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) {