From: William A. Rowe Jr Date: Thu, 2 Aug 2001 19:37:46 +0000 (+0000) Subject: Make this legible. Points out a huge headache in the new conftree pools X-Git-Tag: 2.0.23~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b6c2c7005fe27c3b127a39d5d118ea64158bdd4;p=thirdparty%2Fapache%2Fhttpd.git Make this legible. Points out a huge headache in the new conftree pools 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 --- diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index fffb6190905..875af177036 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -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) {