diff options
Diffstat (limited to 'pthread/pt-setcancelstate.c')
-rw-r--r-- | pthread/pt-setcancelstate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pthread/pt-setcancelstate.c b/pthread/pt-setcancelstate.c index b015f87..de5c688 100644 --- a/pthread/pt-setcancelstate.c +++ b/pthread/pt-setcancelstate.c @@ -35,7 +35,7 @@ __pthread_setcancelstate (int state, int *oldstate) } __pthread_mutex_lock (&p->cancel_lock); - if (oldstate) + if (oldstate != NULL) *oldstate = p->cancel_state; p->cancel_state = state; __pthread_mutex_unlock (&p->cancel_lock); |