New threads where not placed in head of linked list

This commit is contained in:
Grégory Soutadé 2016-02-17 18:15:04 +01:00
parent 978f9335f0
commit b6d0c796be
1 changed files with 1 additions and 2 deletions

View File

@ -343,8 +343,7 @@ static inline thread_ctx_t* create_thread_ctx(struct gengetopt_args_info* params
thread_ctx->next = s_last_thread;
if (s_last_thread)
s_last_thread->prev = thread_ctx;
else
s_last_thread = thread_ctx;
s_last_thread = thread_ctx;
return thread_ctx;
}