fix: initialize value for main thread

This commit is contained in:
Alessandre Laguierce 2025-03-25 19:23:14 +01:00
parent 16a02f00ab
commit efaddc4f99

View File

@ -282,6 +282,7 @@ void __attribute__((constructor)) setup_main_thread()
main->id = main; main->id = main;
main->status = 0; main->status = 0;
main->retvalue = NULL; main->retvalue = NULL;
main->last_waited = NULL;
running = main; running = main;
// Create a context with static stack to clean everything at the end. // Create a context with static stack to clean everything at the end.