From: Stefan Eissing Date: Thu, 23 May 2019 14:29:10 +0000 (+0000) Subject: Addendum to r1856493: check NULLness of new arg parameter. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa885488bc2caea2e166dd1dc8ff089b1961a85c;p=apache Addendum to r1856493: check NULLness of new arg parameter. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1859791 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/cache/cache_util.c b/modules/cache/cache_util.c index d8018c74f2..95a89837be 100644 --- a/modules/cache/cache_util.c +++ b/modules/cache/cache_util.c @@ -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;