From: Justin Erenkrantz Date: Sat, 8 Jun 2002 04:36:05 +0000 (+0000) Subject: Tighten this variable's scope to only where it is needed. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=23260d5bc1d56cc47eba3cd99dbe94b337b9ae42;p=apache Tighten this variable's scope to only where it is needed. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95583 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index 01c4510b1a..cab3bafe0c 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -1442,7 +1442,6 @@ typedef struct header_filter_ctx { AP_CORE_DECLARE_NONSTD(apr_status_t) ap_http_header_filter(ap_filter_t *f, apr_bucket_brigade *b) { - int i; request_rec *r = f->r; conn_rec *c = r->connection; const char *clheader; @@ -1537,6 +1536,7 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_http_header_filter(ap_filter_t *f, } if (!apr_is_empty_table(r->content_languages)) { + int i; char **languages = (char **)(r->content_languages->elts); for (i = 0; i < r->content_languages->nelts; ++i) { apr_table_mergen(r->headers_out, "Content-Language", languages[i]);