httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfcl...@apache.org
Subject svn commit: r551935 - /httpd/httpd/trunk/modules/proxy/mod_proxy.c
Date Fri, 29 Jun 2007 16:08:25 GMT
Author: jfclere
Date: Fri Jun 29 09:08:24 2007
New Revision: 551935

URL: http://svn.apache.org/viewvc?view=rev&rev=551935
Log:
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.

Modified:
    httpd/httpd/trunk/modules/proxy/mod_proxy.c

Modified: httpd/httpd/trunk/modules/proxy/mod_proxy.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_proxy.c?view=diff&rev=551935&r1=551934&r2=551935
==============================================================================
--- httpd/httpd/trunk/modules/proxy/mod_proxy.c (original)
+++ httpd/httpd/trunk/modules/proxy/mod_proxy.c Fri Jun 29 09:08:24 2007
@@ -280,8 +280,9 @@
          * 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;
         }



Mime
View raw message