From 15c31e20d7ff1eedc393aca2d00a3c85a75f38e4 Mon Sep 17 00:00:00 2001 From: Guenter Knauf Date: Thu, 3 Jan 2013 02:25:23 +0000 Subject: [PATCH] Stupid CodeWarrior compiler cant take vars with struct inits. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1428145 13f79535-47bb-0310-9956-ffa450edef68 --- modules/http/http_filters.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/http/http_filters.c b/modules/http/http_filters.c index 71c893afe06..ff88c848e6b 100644 --- a/modules/http/http_filters.c +++ b/modules/http/http_filters.c @@ -680,8 +680,9 @@ static int check_header(void *arg, const char *name, const char *val) static APR_INLINE int check_headers(request_rec *r) { const char *loc; - struct check_header_ctx ctx = { r, 0 }; + struct check_header_ctx ctx = { 0, 0 }; + ctx.r = r; apr_table_do(check_header, &ctx, r->headers_out, NULL); if (ctx.error) return 0; /* problem has been logged by check_header() */ -- 2.47.3