Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed compiler warnings for uninitialized variables.

  • Loading branch information
icculus committed Nov 9, 2011
1 parent 68c75e7 commit 870eeb938221e8bbb7d543b56df93284d93dca8a
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/video/cocoa/SDL_cocoamodes.m
@@ -115,7 +115,10 @@ - (void) setFrame:(NSRect)frame;
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) {

0 comments on commit 870eeb9

Please sign in to comment.