summaryrefslogtreecommitdiff
path: root/pthread/pt-join.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-03-28 02:03:11 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-03-28 02:03:11 +0200
commit8657c93f0adeefd1b50d54ae30aa0a4ba2d89827 (patch)
tree4fde4d311d435ab0f5413e168f4c99767f7032ef /pthread/pt-join.c
parented3150fb7413fce0321ad88a22de7871a301f7c3 (diff)
Fix coding style
Diffstat (limited to 'pthread/pt-join.c')
-rw-r--r--pthread/pt-join.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pthread/pt-join.c b/pthread/pt-join.c
index 1150b33..329163d 100644
--- a/pthread/pt-join.c
+++ b/pthread/pt-join.c
@@ -50,7 +50,7 @@ pthread_join (pthread_t thread, void **status)
{
case PTHREAD_EXITED:
/* THREAD has already exited. Salvage its exit status. */
- if (status)
+ if (status != NULL)
*status = pthread->status;
__pthread_mutex_unlock (&pthread->state_lock);