From: Takashi Sato Date: Tue, 10 Jun 2014 07:07:36 +0000 (+0000) Subject: follow up r1599012: X-Git-Tag: 2.5.0-alpha~4086 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79df7ef79ebc8e337de6d9372a1efe29b587e77d;p=apache follow up r1599012: C99 fix git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1601559 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/filters/mod_proxy_html.c b/modules/filters/mod_proxy_html.c index dcd4b1a5b2..f760829287 100644 --- a/modules/filters/mod_proxy_html.c +++ b/modules/filters/mod_proxy_html.c @@ -918,6 +918,8 @@ static apr_status_t proxy_html_filter(ap_filter_t *f, apr_bucket_brigade *bb) else if (apr_bucket_read(b, &buf, &bytes, APR_BLOCK_READ) == APR_SUCCESS) { if (ctxt->parser == NULL) { + const char *cenc; + /* For documents smaller than four bytes, there is no reason to do * HTML rewriting. The URL schema (i.e. 'http') needs four bytes alone. * And the HTML parser needs at least four bytes to initialise correctly. @@ -927,7 +929,6 @@ static apr_status_t proxy_html_filter(ap_filter_t *f, apr_bucket_brigade *bb) return ap_pass_brigade(f->next, bb) ; } - const char *cenc; if (!xml2enc_charset || (xml2enc_charset(f->r, &enc, &cenc) != APR_SUCCESS)) { if (!xml2enc_charset)