diff --git a/test/testatomic.c b/test/testatomic.c index 006fdedf7..45e5b69a4 100644 --- a/test/testatomic.c +++ b/test/testatomic.c @@ -306,6 +306,7 @@ static void InitEventQueue(SDL_EventQueue *queue) #ifdef TEST_SPINLOCK_FIFO queue->lock = 0; SDL_AtomicSet(&queue->rwcount, 0); + SDL_AtomicSet(&queue->watcher, 0); #endif queue->active = SDL_TRUE; }