]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Make this legible. Points out a huge headache in the new conftree pools
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 2 Aug 2001 19:37:46 +0000 (19:37 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 2 Aug 2001 19:37:46 +0000 (19:37 +0000)
  mechanism, that we aren't joined properly, so we hit the 'not ancestor'
  abend here.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89880 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_protocol.c

index fffb61909052296b1c2e05ea4fc56860ca9c6e43..875af1770364d8701a4b59e4892cbc1764738209 100644 (file)
@@ -1230,9 +1230,9 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_http_header_filter(
     }
 
     if (r->content_languages && r->content_languages->nelts) {
+        char **languages = (char **)(r->content_languages->elts);
         for (i = 0; i < r->content_languages->nelts; ++i) {
-            apr_table_mergen(r->headers_out, "Content-Language",
-                            ((char **) (r->content_languages->elts))[i]);
+            apr_table_mergen(r->headers_out, "Content-Language", languages[i]);
         }
     }
     else if (r->content_language) {