Commit 469416f9 authored by Emil Velikov's avatar Emil Velikov

c11/threads: correct assertion

We should assert when either the function or the flag pointer
is null or we'll end up with a null reference a few lines later.

Currently unused by mesa thus it has gone unnoticed.
Signed-off-by: Emil Velikov's avatarEmil Velikov <>
Reviewed-by: default avatarIan Romanick <>
parent 07109cfd
......@@ -296,7 +296,7 @@ static void impl_tss_dtor_invoke()
static inline void
call_once(once_flag *flag, void (*func)(void))
assert(!flag && !func);
assert(flag && func);
struct impl_call_once_param param;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment