diff options
Diffstat (limited to 'pthread/pt-setcanceltype.c')
-rw-r--r-- | pthread/pt-setcanceltype.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pthread/pt-setcanceltype.c b/pthread/pt-setcanceltype.c index f17a0f8..0f29a43 100644 --- a/pthread/pt-setcanceltype.c +++ b/pthread/pt-setcanceltype.c @@ -35,7 +35,7 @@ __pthread_setcanceltype (int type, int *oldtype) } __pthread_mutex_lock (&p->cancel_lock); - if (oldtype) + if (oldtype != NULL) *oldtype = p->cancel_type; p->cancel_type = type; __pthread_mutex_unlock (&p->cancel_lock); |