]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Remove unnecessary initialization and add a comment about chunk_hdr's
authorJustin Erenkrantz <jerenkrantz@apache.org>
Sun, 30 Sep 2001 04:17:16 +0000 (04:17 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Sun, 30 Sep 2001 04:17:16 +0000 (04:17 +0000)
scope.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91209 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_core.c

index be64ced5eb338eefaf27a49ec6f78d8bd6958617..273032998453a24152c05934051cc01c1f7fb817 100644 (file)
@@ -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) {