From: Jean-Frederic Clere Date: Fri, 29 Jun 2007 16:08:24 +0000 (+0000) Subject: Fix the warning: X-Git-Tag: 2.3.0~1740 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a0c15d9c9b0516a2d3d9821fa8fbd352028fc6f7;p=apache Fix the warning: 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 --- diff --git a/modules/proxy/mod_proxy.c b/modules/proxy/mod_proxy.c index 0da29ce8a1..73a69aa9a8 100644 --- a/modules/proxy/mod_proxy.c +++ b/modules/proxy/mod_proxy.c @@ -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; }