Skip to content

Commit

Permalink
Static analysis fix: uninitialized data.
Browse files Browse the repository at this point in the history
(This is Clang not knowing that SDL_SetError() always returns -1.)
  • Loading branch information
icculus committed Mar 20, 2014
1 parent d7a253b commit 3aae0ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/video/SDL_video.c
Expand Up @@ -1128,6 +1128,8 @@ SDL_UpdateFullscreenMode(SDL_Window * window, SDL_bool fullscreen)
if (setDisplayMode) {
SDL_DisplayMode fullscreen_mode;

SDL_zero(fullscreen_mode);

if (SDL_GetWindowDisplayMode(other, &fullscreen_mode) == 0) {
SDL_bool resized = SDL_TRUE;

Expand Down

0 comments on commit 3aae0ed

Please sign in to comment.