From b084999d40855c8e763dde2ddbf4e6018fb4d35e Mon Sep 17 00:00:00 2001 From: Sylvain Date: Wed, 3 Sep 2025 10:13:05 +0200 Subject: [PATCH] testautomation_events: initialize variable to prevent undefined read --- test/testautomation_events.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/testautomation_events.c b/test/testautomation_events.c index ed4e684cff..ccf417c381 100644 --- a/test/testautomation_events.c +++ b/test/testautomation_events.c @@ -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);