]> granicus.if.org Git - apache/commitdiff
use ap_strchr_c to protect const-ness of input string
authorJeff Trawick <trawick@apache.org>
Mon, 2 Nov 2009 23:03:14 +0000 (23:03 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 2 Nov 2009 23:03:14 +0000 (23:03 +0000)
(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

modules/cache/mod_cache.c

index 27bf3368fac975a61fe26bf23baa741c27631caa..078456856c970341b5e19be02ba4aa1e9bfcd3ea 100644 (file)
@@ -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'.";
     }