mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Static analysis fix: uninitialized data.
(Clang doesn't know that "_this" was already checked for NULLness elsewhere.)
This commit is contained in:
parent
93ba5bd899
commit
d7a253b5ec
@ -1570,6 +1570,8 @@ SDL_SetWindowPosition(SDL_Window * window, int x, int y)
|
|||||||
int displayIndex;
|
int displayIndex;
|
||||||
SDL_Rect bounds;
|
SDL_Rect bounds;
|
||||||
|
|
||||||
|
SDL_zero(bounds);
|
||||||
|
|
||||||
displayIndex = SDL_GetIndexOfDisplay(display);
|
displayIndex = SDL_GetIndexOfDisplay(display);
|
||||||
SDL_GetDisplayBounds(displayIndex, &bounds);
|
SDL_GetDisplayBounds(displayIndex, &bounds);
|
||||||
if (SDL_WINDOWPOS_ISCENTERED(x)) {
|
if (SDL_WINDOWPOS_ISCENTERED(x)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user