From: Jeff Trawick Date: Mon, 2 Nov 2009 23:03:14 +0000 (+0000) Subject: use ap_strchr_c to protect const-ness of input string X-Git-Tag: 2.3.3~82 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=93b1a9ca24230e868f2b38cf667860661324f9d3;p=apache use ap_strchr_c to protect const-ness of input string (and thus quiet gcc in maintainer mode) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@832177 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/cache/mod_cache.c b/modules/cache/mod_cache.c index 27bf3368fa..078456856c 100644 --- a/modules/cache/mod_cache.c +++ b/modules/cache/mod_cache.c @@ -1576,7 +1576,7 @@ static const char *add_cache_disable(cmd_parms *parms, void *dummy, if (parms->path && !strcmp(url, "on")) { url = parms->path; } - if (url[0] != '/' && !strchr(url, ':')) { + if (url[0] != '/' && !ap_strchr_c(url, ':')) { return "CacheDisable must specify a path or an URL, or when in a Location, " "the word 'on'."; }