diff --git a/test/testautomation_video.c b/test/testautomation_video.c index 650ef66e60..ad1e3b1c8d 100644 --- a/test/testautomation_video.c +++ b/test/testautomation_video.c @@ -1955,7 +1955,7 @@ static int SDLCALL video_getSetWindowState(void *arg) SDL_Rect display; SDL_WindowFlags flags; int windowedX, windowedY; - int currentX, currentY; + int currentX = 0, currentY = 0; int desiredX = 0, desiredY = 0; int windowedW, windowedH; int currentW, currentH;