Static analysis fix: uninitialized data.
(Clang doesn't know that "_this" was already checked for NULLness elsewhere.)
This commit is contained in:
parent
d8bed6eede
commit
1cf04be2fe
1 changed files with 2 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue