VIDEO: Initialize event structure to 0 before waiting for events

No clear reason to do this, given the SDL code path in the call to
SDL_WaitEvent, but initializing at startup adds no overhead and
was reported to help some debugging activities.
This commit is contained in:
Mark Emmer 2021-02-25 13:30:34 -08:00 committed by Mark Pizzolato
parent 885277e14f
commit 10f3a9dea3

View file

@ -448,6 +448,8 @@ if (vid_main_thread_handle == NULL) {
vid_beep_setup (400, 660);
memset (&event, 0, sizeof (event));
while (1) {
int status = SDL_WaitEvent (&event);
if (status == 1) {