testautomation_events: initialize variable to prevent undefined read

This commit is contained in:
Sylvain
2025-09-03 10:13:05 +02:00
committed by Sylvain Becker
parent 437d78499c
commit b084999d40

View File

@@ -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);