httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r1240164 - /httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c
Date Fri, 03 Feb 2012 13:47:59 GMT
Author: mturk
Date: Fri Feb  3 13:47:59 2012
New Revision: 1240164

URL: http://svn.apache.org/viewvc?rev=1240164&view=rev
Log:
C/C++ 101 on how to traverse the array of pointers ;). Fix core

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

Modified: httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c?rev=1240164&r1=1240163&r2=1240164&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c (original)
+++ httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c Fri Feb  3 13:47:59 2012
@@ -877,9 +877,9 @@ static void push2table(const char *input
             apr_table_set(params, key, val);
         }
         else {
-            const char *ok = *allowed;
-            while (ok) {
-                if (strcmp(ok, key) == 0) {
+            const char **ok = *allowed;
+            while (*ok) {
+                if (strcmp(*ok, key) == 0) {
                     apr_table_set(params, key, val);
                     break;
                 }



Mime
View raw message