testautomation_events: initialize variable to prevent undefined read
This commit is contained in:
1 parent
437d78499c
commit
b084999d40
1 file changed
+1
@@ -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