summaryrefslogtreecommitdiff
path: root/pthread/pt-setcanceltype.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-setcanceltype.c
parented3150fb7413fce0321ad88a22de7871a301f7c3 (diff)
Fix coding style
Diffstat (limited to 'pthread/pt-setcanceltype.c')
-rw-r--r--pthread/pt-setcanceltype.c2
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);