From: Ruediger Pluem Date: Sun, 4 Oct 2009 12:21:29 +0000 (+0000) Subject: * Fix 'may be used uninitialized in this function' compiler warning. X-Git-Tag: 2.3.3~210 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=51d5fc6cd0045c453b9b30ef1d6ec455037e3abd;p=thirdparty%2Fapache%2Fhttpd.git * Fix 'may be used uninitialized in this function' compiler warning. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@821526 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/core_filters.c b/server/core_filters.c index 53a02698a65..f2c912062a2 100644 --- a/server/core_filters.c +++ b/server/core_filters.c @@ -356,7 +356,7 @@ apr_status_t ap_core_output_filter(ap_filter_t *f, apr_bucket_brigade *new_bb) conn_rec *c = f->c; core_net_rec *net = f->ctx; core_output_filter_ctx_t *ctx = net->out_ctx; - apr_bucket_brigade *bb; + apr_bucket_brigade *bb = NULL; apr_bucket *bucket, *next; apr_size_t bytes_in_brigade, non_file_bytes_in_brigade; apr_status_t rv; @@ -392,7 +392,7 @@ apr_status_t ap_core_output_filter(ap_filter_t *f, apr_bucket_brigade *new_bb) } bb = new_bb; } - + if ((ctx->buffered_bb != NULL) && !APR_BRIGADE_EMPTY(ctx->buffered_bb)) { if (new_bb != NULL) {