From 88f0cfffc11ea9a3fa2d6ff0956b5ecadb3665f7 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Fri, 21 Aug 2015 14:28:14 +0000 Subject: Fix err pointer not initialized to NULL resulting Reported by: "O. Hartmann" --- pw/strtounum.c | 1 + 1 file changed, 1 insertion(+) (limited to 'pw') 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) -- cgit v1.2.3-56-ge451