diff options
author | 2016-02-07 20:50:24 +0000 | |
---|---|---|
committer | 2016-02-07 20:50:24 +0000 | |
commit | 24edb11bd48ac47131ab1d2082f0f7e1c19d578d (patch) | |
tree | 647c99678e3dac9f7dc30ff6321e3445c2b3a54d /lib/libc | |
parent | require a tty for the password. (diff) | |
download | wireguard-openbsd-24edb11bd48ac47131ab1d2082f0f7e1c19d578d.tar.xz wireguard-openbsd-24edb11bd48ac47131ab1d2082f0f7e1c19d578d.zip |
compare pointer to NULL in example code
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/stdlib/strtonum.3 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdlib/strtonum.3 b/lib/libc/stdlib/strtonum.3 index ed638cdbe2f..43df0edc78f 100644 --- a/lib/libc/stdlib/strtonum.3 +++ b/lib/libc/stdlib/strtonum.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: strtonum.3,v 1.17 2013/08/14 06:32:28 jmc Exp $ +.\" $OpenBSD: strtonum.3,v 1.18 2016/02/07 20:50:24 mmcc Exp $ .\" .\" Copyright (c) 2004 Ted Unangst .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: August 14 2013 $ +.Dd $Mdocdate: February 7 2016 $ .Dt STRTONUM 3 .Os .Sh NAME @@ -96,7 +96,7 @@ int iterations; const char *errstr; iterations = strtonum(optarg, 1, 64, &errstr); -if (errstr) +if (errstr != NULL) errx(1, "number of iterations is %s: %s", errstr, optarg); .Ed .Pp |