mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
testautomation_events: initialize variable to prevent undefined read
This commit is contained in:
parent
437d78499c
commit
b084999d40
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue