From a0c15d9c9b0516a2d3d9821fa8fbd352028fc6f7 Mon Sep 17 00:00:00 2001 From: Jean-Frederic Clere Date: Fri, 29 Jun 2007 16:08:24 +0000 Subject: [PATCH] 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 --- modules/proxy/mod_proxy.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } -- 2.50.1