From: Justin Erenkrantz Date: Sun, 30 Sep 2001 04:17:16 +0000 (+0000) Subject: Remove unnecessary initialization and add a comment about chunk_hdr's X-Git-Tag: 2.0.26~145 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=40304cb1ee884691867f277654c992bfe8fefcdb;p=thirdparty%2Fapache%2Fhttpd.git Remove unnecessary initialization and add a comment about chunk_hdr's scope. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91209 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_core.c b/modules/http/http_core.c index be64ced5eb3..27303299845 100644 --- a/modules/http/http_core.c +++ b/modules/http/http_core.c @@ -137,7 +137,7 @@ static apr_status_t chunk_filter(ap_filter_t *f, apr_bucket_brigade *b) { #define ASCII_CRLF "\015\012" #define ASCII_ZERO "\060" - apr_bucket_brigade *more = NULL; + apr_bucket_brigade *more; apr_bucket *e; apr_status_t rv; @@ -145,6 +145,9 @@ static apr_status_t chunk_filter(ap_filter_t *f, apr_bucket_brigade *b) apr_off_t bytes = 0; apr_bucket *eos = NULL; apr_bucket *flush = NULL; + /* XXX: chunk_hdr must remain at this scope since it is used in a + * transient bucket. + */ char chunk_hdr[20]; /* enough space for the snprintf below */ APR_BRIGADE_FOREACH(e, b) {