]> granicus.if.org Git - apache/commitdiff
Fix the warning:
authorJean-Frederic Clere <jfclere@apache.org>
Fri, 29 Jun 2007 16:08:24 +0000 (16:08 +0000)
committerJean-Frederic Clere <jfclere@apache.org>
Fri, 29 Jun 2007 16:08:24 +0000 (16:08 +0000)
mod_proxy.c:284: warning: passing argument 1 of 'ap_strchr' discards qualifiers from pointer target type
Thanks Joe for catch it.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@551935 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy.c

index 0da29ce8a1575d63ac3c4a7f37b62251ab97d205..73a69aa9a874332a815dbbcaff3246324d7cdedb 100644 (file)
@@ -280,8 +280,9 @@ static const char *set_balancer_param(proxy_server_conf *conf,
          * Set to something like JSESSIONID or
          * PHPSESSIONID, etc..,
          */
-        balancer->sticky = balancer->sticky_path = apr_pstrdup(p, val);
-        if ((path = strchr(balancer->sticky, '|'))) {
+        path = apr_pstrdup(p, val);
+        balancer->sticky = balancer->sticky_path = path;
+        if ((path = strchr(path, '|'))) {
             *path++ = '\0';
             balancer->sticky_path = path;
         }