[Midnightbsd-cvs] src [10536] trunk/lib/libc/stdlib/strtonum.3: check for null

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Thu Jun 7 19:01:20 EDT 2018


Revision: 10536
          http://svnweb.midnightbsd.org/src/?rev=10536
Author:   laffer1
Date:     2018-06-07 19:01:19 -0400 (Thu, 07 Jun 2018)
Log Message:
-----------
 check for null

Modified Paths:
--------------
    trunk/lib/libc/stdlib/strtonum.3

Property Changed:
----------------
    trunk/lib/libc/stdlib/strtonum.3

Modified: trunk/lib/libc/stdlib/strtonum.3
===================================================================
--- trunk/lib/libc/stdlib/strtonum.3	2018-06-07 23:00:25 UTC (rev 10535)
+++ trunk/lib/libc/stdlib/strtonum.3	2018-06-07 23:01:19 UTC (rev 10536)
@@ -13,7 +13,8 @@
 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 .\"
 .\" $OpenBSD: strtonum.3,v 1.13 2006/04/25 05:15:42 tedu Exp $
-.\" $FreeBSD$
+.\" $FreeBSD: stable/10/lib/libc/stdlib/strtonum.3 254483 2013-08-18 10:33:46Z pjd $
+.\" $MidnightBSD$
 .\"
 .Dd April 29, 2004
 .Dt STRTONUM 3
@@ -97,7 +98,7 @@
 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


Property changes on: trunk/lib/libc/stdlib/strtonum.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list