fix: initialize value for main thread
This commit is contained in:
parent
16a02f00ab
commit
efaddc4f99
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user