diff options
Diffstat (limited to 'pthread/pt-join.c')
-rw-r--r-- | pthread/pt-join.c | 2 |
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); |