summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pw/strtounum.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pw/strtounum.c b/pw/strtounum.c
index be57276..b2fefeb 100644
--- a/pw/strtounum.c
+++ b/pw/strtounum.c
@@ -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)