From: Guenter Knauf Date: Thu, 3 Jan 2013 02:25:23 +0000 (+0000) Subject: Stupid CodeWarrior compiler cant take vars with struct inits. X-Git-Tag: 2.5.0-alpha~5927 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2eb1a07d4a53c2fa37af57e3c0a725a720a5eab2;p=apache 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 --- diff --git a/modules/http/http_filters.c b/modules/http/http_filters.c index 71c893afe0..ff88c848e6 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() */