mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-26 10:06:42 +08:00
testautomation_events: initialize variable to prevent undefined read
This commit is contained in:
@@ -230,6 +230,7 @@ static int SDLCALL IncrementCounterThread(void *userdata)
|
|||||||
SDL_Event event;
|
SDL_Event event;
|
||||||
|
|
||||||
SDL_assert(!SDL_IsMainThread());
|
SDL_assert(!SDL_IsMainThread());
|
||||||
|
SDL_zero(event);
|
||||||
|
|
||||||
if (data->delay > 0) {
|
if (data->delay > 0) {
|
||||||
SDL_Delay(data->delay);
|
SDL_Delay(data->delay);
|
||||||
|
|||||||
Reference in New Issue
Block a user