mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +08:00
pthread/join: catch null pexit_value case
This adds handling for null pointer in errout route as it crashes my ostest sometimes. Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
This commit is contained in:
@@ -158,6 +158,14 @@ errout:
|
|||||||
|
|
||||||
leave_cancellation_point();
|
leave_cancellation_point();
|
||||||
|
|
||||||
sinfo("Returning %d, exit_value %p\n", ret, *pexit_value);
|
if (pexit_value)
|
||||||
|
{
|
||||||
|
sinfo("Returning %d, exit_value %p\n", ret, *pexit_value);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sinfo("Returning %d\n", ret);
|
||||||
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user