Skip to content

Commit

Permalink
Static analysis fix: uninitialized data.
Browse files Browse the repository at this point in the history
(Clang doesn't know that "_this" was already checked for NULLness elsewhere.)
  • Loading branch information
icculus committed Mar 20, 2014
1 parent 93ba5bd commit d7a253b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/video/SDL_video.c
Expand Up @@ -1570,6 +1570,8 @@ SDL_SetWindowPosition(SDL_Window * window, int x, int y)
int displayIndex;
SDL_Rect bounds;

SDL_zero(bounds);

displayIndex = SDL_GetIndexOfDisplay(display);
SDL_GetDisplayBounds(displayIndex, &bounds);
if (SDL_WINDOWPOS_ISCENTERED(x)) {
Expand Down

0 comments on commit d7a253b

Please sign in to comment.