Skip to content

Commit b084999

Browse files
committed
testautomation_events: initialize variable to prevent undefined read
1 parent 437d784 commit b084999

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/testautomation_events.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ static int SDLCALL IncrementCounterThread(void *userdata)
230230
SDL_Event event;
231231

232232
SDL_assert(!SDL_IsMainThread());
233+
SDL_zero(event);
233234

234235
if (data->delay > 0) {
235236
SDL_Delay(data->delay);

0 commit comments

Comments
 (0)