diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-03-28 02:03:11 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-03-28 02:03:11 +0200 |
commit | 8657c93f0adeefd1b50d54ae30aa0a4ba2d89827 (patch) | |
tree | 4fde4d311d435ab0f5413e168f4c99767f7032ef /pthread/pt-setcancelstate.c | |
parent | ed3150fb7413fce0321ad88a22de7871a301f7c3 (diff) |
Fix coding style
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); |