Static analysis fix: uninitialized data.

(This is Clang not knowing that SDL_SetError() always returns -1.)
main
Ryan C. Gordon 2014-03-20 16:54:20 -04:00
parent d7a253b5ec
commit 3aae0ed2c5
1 changed files with 2 additions and 0 deletions

View File

@ -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;