]> granicus.if.org Git - apache/commitdiff
Stupid CodeWarrior compiler cant take vars with struct inits.
authorGuenter Knauf <fuankg@apache.org>
Thu, 3 Jan 2013 02:25:23 +0000 (02:25 +0000)
committerGuenter Knauf <fuankg@apache.org>
Thu, 3 Jan 2013 02:25:23 +0000 (02:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1428145 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_filters.c

index 71c893afe066dea0993f2897b84443ced6926e94..ff88c848e6b0e5624c111001ef084ed2ac141f10 100644 (file)
@@ -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() */