summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2018-04-22 13:23:47 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2018-04-22 13:23:47 +0000
commitb8355953dc59b3e5e2eebcdf75a6e7ce8c5a23e2 (patch)
treef2b6d289c9737cffed08e6b19606b869790bc996 /lib/libc
parentec8a7dfe1ac8494adf53dd75ce49acf1a0b5d0fc (diff)
use NULL for pointer
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/sigaltstack.24
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/sys/sigaltstack.2 b/lib/libc/sys/sigaltstack.2
index 58d6c4dcfa1..55854991fe4 100644
--- a/lib/libc/sys/sigaltstack.2
+++ b/lib/libc/sys/sigaltstack.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sigaltstack.2,v 1.22 2018/04/22 12:55:11 deraadt Exp $
+.\" $OpenBSD: sigaltstack.2,v 1.23 2018/04/22 13:23:46 deraadt Exp $
.\" $NetBSD: sigaltstack.2,v 1.3 1995/02/27 10:41:52 cgd Exp $
.\"
.\" Copyright (c) 1983, 1991, 1992, 1993
@@ -115,7 +115,7 @@ if ((sigstk.ss_sp = malloc(SIGSTKSZ)) == NULL)
/* error return */
sigstk.ss_size = SIGSTKSZ;
sigstk.ss_flags = 0;
-if (sigaltstack(&sigstk, 0) == -1)
+if (sigaltstack(&sigstk, NULL) == -1)
perror("sigaltstack");
.Ed
.Pp