1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-07 04:02:58 +03:00

C/C++ 101 on how to traverse the array of pointers ;). Fix core

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1240164 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mladen Turk
2012-02-03 13:47:59 +00:00
parent e4704a6710
commit 7fac08440e

View File

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