Fixed compiler warnings for uninitialized variables.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 09 Nov 2011 00:27:44 -0500
changeset 6072 8b473f33c766
parent 6071 72f06ae88e7e
child 6073 9738f2a8eee4
Fixed compiler warnings for uninitialized variables.
src/video/cocoa/SDL_cocoamodes.m
--- a/src/video/cocoa/SDL_cocoamodes.m	Tue Nov 08 19:45:41 2011 -0500
+++ b/src/video/cocoa/SDL_cocoamodes.m	Wed Nov 09 00:27:44 2011 -0500
@@ -115,7 +115,10 @@
 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) {