diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-08-21 14:28:14 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-08-21 14:28:14 +0000 |
commit | 88f0cfffc11ea9a3fa2d6ff0956b5ecadb3665f7 (patch) | |
tree | 4a3c4f64a3a940ee2e51adc5638093dcf0971971 | |
parent | 310937fee1f84f07d1175c78733da51de818f46e (diff) | |
download | pw-darwin-88f0cfffc11ea9a3fa2d6ff0956b5ecadb3665f7.tar.gz pw-darwin-88f0cfffc11ea9a3fa2d6ff0956b5ecadb3665f7.tar.zst pw-darwin-88f0cfffc11ea9a3fa2d6ff0956b5ecadb3665f7.zip |
Fix err pointer not initialized to NULL resulting
Reported by: "O. Hartmann" <ohartman@zedat.fu-berlin.de>
-rw-r--r-- | pw/strtounum.c | 1 |
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) |