summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/signal/sigprocmask.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/signal/sigprocmask.c b/src/signal/sigprocmask.c
index db27f12a..1bc5baa6 100644
--- a/src/signal/sigprocmask.c
+++ b/src/signal/sigprocmask.c
@@ -12,7 +12,7 @@ int __sigprocmask(int how, const sigset_t *set, sigset_t *old)
{
sigset_t tmp;
/* Disallow blocking thread control signals */
- if (how != SIG_UNBLOCK) {
+ if (set && how != SIG_UNBLOCK) {
tmp = *set;
set = &tmp;
sigdelset(&tmp, SIGCANCEL);