Commit 180a4e45 authored by Justin Erenkrantz's avatar Justin Erenkrantz
Browse files

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
parent b6558266
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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) {