From 8657c93f0adeefd1b50d54ae30aa0a4ba2d89827 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 28 Mar 2018 02:03:11 +0200 Subject: Fix coding style --- pthread/pt-setcanceltype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pthread/pt-setcanceltype.c') 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); -- cgit v1.2.3