summaryrefslogtreecommitdiffstats
path: root/pw/strtounum.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-10-28 11:58:18 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-10-28 11:58:18 +0000
commit31821e10331e5275bfb2b572454feb58c607bef1 (patch)
tree71dcb7f2f3f7fcea3ca751ce739655296f9c59f2 /pw/strtounum.c
parentf1bef959a51e2994216735586c6ef525f2728f10 (diff)
parent09acfb95717de6c2b93a0d318be244723fde1fe0 (diff)
downloadpw-darwin-31821e10331e5275bfb2b572454feb58c607bef1.tar.gz
pw-darwin-31821e10331e5275bfb2b572454feb58c607bef1.zip
Merge from head
Sponsored by: Gandi.net
Diffstat (limited to 'pw/strtounum.c')
-rw-r--r--pw/strtounum.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pw/strtounum.c b/pw/strtounum.c
index 8d83470..b2fefeb 100644
--- a/pw/strtounum.c
+++ b/pw/strtounum.c
@@ -1,5 +1,5 @@
/*-
- * Copyright (C) Baptiste Daroussin <bapt@FreeBSD.org>
+ * Copyright (C) 2015 Baptiste Daroussin <bapt@FreeBSD.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -41,6 +41,7 @@ strtounum(const char * __restrict np, uintmax_t minval, uintmax_t maxval,
char *endp;
uintmax_t ret;
+ *errpp = NULL;
if (minval > maxval) {
errno = EINVAL;
if (errpp != NULL)