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 | 405476b14c422483c28c44621a1a652a499baa49 (patch) | |
tree | 0befc6c63f7f453058e15f42706244429a4daa71 /pw/strtounum.c | |
parent | 151854066c201774b371039259b8130d6f32235c (diff) | |
download | pw-darwin-405476b14c422483c28c44621a1a652a499baa49.tar.gz pw-darwin-405476b14c422483c28c44621a1a652a499baa49.tar.zst pw-darwin-405476b14c422483c28c44621a1a652a499baa49.zip |
Fix err pointer not initialized to NULL resulting
Reported by: "O. Hartmann" <ohartman@zedat.fu-berlin.de>
Diffstat (limited to 'pw/strtounum.c')
-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) |