]> granicus.if.org Git - apache/commitdiff
Addendum to r1856493: check NULLness of new arg parameter.
authorStefan Eissing <icing@apache.org>
Thu, 23 May 2019 14:29:10 +0000 (14:29 +0000)
committerStefan Eissing <icing@apache.org>
Thu, 23 May 2019 14:29:10 +0000 (14:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1859791 13f79535-47bb-0310-9956-ffa450edef68

modules/cache/cache_util.c

index d8018c74f2db193fe1b5be9de1d52f31cf19bf14..95a89837be95faf15032d4dd6ff1ba1b01edeefd 100644 (file)
@@ -974,7 +974,7 @@ apr_status_t cache_strqtok(char *str, char **token, char **arg, char **last)
             if (*str == '=') {
                 state = IN_BETWEEN;
                 *wpos++ = '\0';
-                *arg = wpos;
+                if (arg) *arg = wpos;
                 continue;
             }
             break;