From efaddc4f994675242940985dd4ac1ff8c67c166d Mon Sep 17 00:00:00 2001 From: Alessandre Laguierce Date: Tue, 25 Mar 2025 19:23:14 +0100 Subject: [PATCH] fix: initialize value for main thread --- src/thread/thread.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/thread/thread.c b/src/thread/thread.c index c332d42..1bb1680 100644 --- a/src/thread/thread.c +++ b/src/thread/thread.c @@ -282,6 +282,7 @@ void __attribute__((constructor)) setup_main_thread() main->id = main; main->status = 0; main->retvalue = NULL; + main->last_waited = NULL; running = main; // Create a context with static stack to clean everything at the end.