mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-01-02 11:32:38 +00: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_assert(!SDL_IsMainThread());
|
||||
SDL_zero(event);
|
||||
|
||||
if (data->delay > 0) {
|
||||
SDL_Delay(data->delay);
|
||||
|
||||
Reference in New Issue
Block a user