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
* 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;
}