Static analysis fix: uninitialized data.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 20 Mar 2014 16:25:30 -0400
changeset 8655 edd378be2433
parent 8654 275c4c82803b
child 8656 d62ef586c696
Static analysis fix: uninitialized data. (Clang doesn't know that "_this" was already checked for NULLness elsewhere.)
src/video/SDL_video.c
--- a/src/video/SDL_video.c	Thu Mar 20 16:23:18 2014 -0400
+++ b/src/video/SDL_video.c	Thu Mar 20 16:25:30 2014 -0400
@@ -1570,6 +1570,8 @@
         int displayIndex;
         SDL_Rect bounds;
 
+        SDL_zero(bounds);
+
         displayIndex = SDL_GetIndexOfDisplay(display);
         SDL_GetDisplayBounds(displayIndex, &bounds);
         if (SDL_WINDOWPOS_ISCENTERED(x)) {