]> granicus.if.org Git - apache/commitdiff
Fix -Wall warning... Thanks to Joe for the head's up!
authorJim Jagielski <jim@apache.org>
Wed, 12 Oct 2005 13:01:25 +0000 (13:01 +0000)
committerJim Jagielski <jim@apache.org>
Wed, 12 Oct 2005 13:01:25 +0000 (13:01 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@314875 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_util.c

index 6aa6f2884208f69dd374847339f34f2cddb52971..c5ee5776e67d9143702a8524d75c48199e6d675b 100644 (file)
@@ -1216,10 +1216,10 @@ PROXY_DECLARE(proxy_worker *) ap_proxy_get_worker(apr_pool_t *p,
     int max_match = 0;
     int url_length;
     int worker_name_length;
-    char *c;
+    const char *c;
     int i;
 
-    c = strchr(url, ':');
+    c = ap_strchr_c(url, ':');
     if (c == NULL || c[1] != '/' || c[2] != '/' || c[3] == '\0')
        return NULL;