Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed compiler warnings for uninitialized variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Nov 9, 2011
1 parent 68c75e7 commit 870eeb9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/video/cocoa/SDL_cocoamodes.m
Expand Up @@ -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) {
Expand Down

0 comments on commit 870eeb9

Please sign in to comment.