Noah Goldstein ef0949828e [LIBC] Fix incorrect handling of pthread_join(tid, nullptr)
Previously unconditionally stored to the return value. This is
incorrect, we should only return if user value is non-null.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D148293
2023-04-20 14:53:37 -05:00
..