diff --git a/uisimulator/sdl/kernel.c b/uisimulator/sdl/kernel.c index 98d509f6a6..b2bf77026f 100644 --- a/uisimulator/sdl/kernel.c +++ b/uisimulator/sdl/kernel.c @@ -191,7 +191,7 @@ intptr_t queue_send(struct event_queue *q, long id, intptr_t data) if(q->send) { struct thread_entry **spp = &q->send->senders[wr]; - struct thread_entry sender; + static struct thread_entry sender; if(*spp) {