summaryrefslogtreecommitdiff
path: root/pthread/pt-cancel.c
diff options
context:
space:
mode:
Diffstat (limited to 'pthread/pt-cancel.c')
-rw-r--r--pthread/pt-cancel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pthread/pt-cancel.c b/pthread/pt-cancel.c
index b7e9a93..9f87724 100644
--- a/pthread/pt-cancel.c
+++ b/pthread/pt-cancel.c
@@ -27,7 +27,7 @@ pthread_cancel (pthread_t t)
struct __pthread *p;
p = __pthread_getid (t);
- if (! p)
+ if (p == NULL)
return ESRCH;
__pthread_mutex_lock (&p->cancel_lock);