httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpl...@apache.org
Subject svn commit: r821526 - /httpd/httpd/trunk/server/core_filters.c
Date Sun, 04 Oct 2009 12:21:29 GMT
Author: rpluem
Date: Sun Oct  4 12:21:29 2009
New Revision: 821526

URL: http://svn.apache.org/viewvc?rev=821526&view=rev
Log:
* Fix 'may be used uninitialized in this function' compiler warning.

Modified:
    httpd/httpd/trunk/server/core_filters.c

Modified: httpd/httpd/trunk/server/core_filters.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/core_filters.c?rev=821526&r1=821525&r2=821526&view=diff
==============================================================================
--- httpd/httpd/trunk/server/core_filters.c (original)
+++ httpd/httpd/trunk/server/core_filters.c Sun Oct  4 12:21:29 2009
@@ -356,7 +356,7 @@
     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 @@
         }
         bb = new_bb;
     }
-    
+
     if ((ctx->buffered_bb != NULL) &&
         !APR_BRIGADE_EMPTY(ctx->buffered_bb)) {
         if (new_bb != NULL) {



Mime
View raw message