]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Need to ensure that result is set, no matter what
authorJim Jagielski <jim@apache.org>
Tue, 18 Jun 2002 17:57:59 +0000 (17:57 +0000)
committerJim Jagielski <jim@apache.org>
Tue, 18 Jun 2002 17:57:59 +0000 (17:57 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@95777 13f79535-47bb-0310-9956-ffa450edef68

src/ap/ap_strtol.c

index c374d4cbef36f7e3fd36d23a0ba1d915b6d78c5d..76ea4de6c136394d3584c77d79c71c166561cf26 100644 (file)
@@ -189,6 +189,7 @@ API_EXPORT(long) ap_strtol(const char *nptr, char **endptr, int base)
                        acc += c;
                }
        }
+        result = (long)acc;
        if (any < 0) {
                result = neg ? LONG_MIN : LONG_MAX;
                errno = ERANGE;