From e405f41c766591eb02c43b7b2cc50ac4f0b72a4a Mon Sep 17 00:00:00 2001 From: Mladen Turk Date: Fri, 3 Feb 2012 13:49:33 +0000 Subject: [PATCH] C/C++ 101 on how to traverse the array of pointers ;). Fix core git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1240167 13f79535-47bb-0310-9956-ffa450edef68 --- modules/proxy/mod_proxy_balancer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/proxy/mod_proxy_balancer.c b/modules/proxy/mod_proxy_balancer.c index 0fb22edd1a..3660ad6cd7 100644 --- a/modules/proxy/mod_proxy_balancer.c +++ b/modules/proxy/mod_proxy_balancer.c @@ -877,9 +877,9 @@ static void push2table(const char *input, apr_table_t *params, 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; } -- 2.40.0