diff --git a/src/system/libroot/posix/pthread/pthread.cpp b/src/system/libroot/posix/pthread/pthread.cpp index cb7b5f2547..967fb70024 100644 --- a/src/system/libroot/posix/pthread/pthread.cpp +++ b/src/system/libroot/posix/pthread/pthread.cpp @@ -160,8 +160,8 @@ pthread_create(pthread_t* _thread, const pthread_attr_t* attr, } __set_stack_protection(); - resume_thread(thread->id); *_thread = thread; + resume_thread(thread->id); return 0; }