diff options
author | Ryan C. Gordon <icculus@icculus.org> | 2014-03-20 16:54:20 -0400 |
---|---|---|
committer | Ryan C. Gordon <icculus@icculus.org> | 2014-03-20 16:54:20 -0400 |
commit | 40fde9c1c0a444fa759a7bdda5848e336a9b3b7d (patch) | |
tree | 09a9e0b26e2b542003627540d7f424ece9829fb2 | |
parent | 4b5ca079dcb12c956a0dfefdf3973850c51cad84 (diff) | |
download | sdl-40fde9c1c0a444fa759a7bdda5848e336a9b3b7d.tar.gz |
Static analysis fix: uninitialized data.
(This is Clang not knowing that SDL_SetError() always returns -1.)
-rw-r--r-- | src/video/SDL_video.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index bd04b44cd..139bc1573 100644 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -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; |