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-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15c31e20d7ff1eedc393aca2d00a3c85a75f38e4;p=thirdparty%2Fapache%2Fhttpd.git 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 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() */