From: William A. Rowe Jr Date: Tue, 20 Sep 2005 20:47:57 +0000 (+0000) Subject: We never call this function with 'nothing to do', however we aught to quiet X-Git-Tag: 2.0.55~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9721ad840772eb8f95950fc3bc52f3f8a33c274c;p=thirdparty%2Fapache%2Fhttpd.git We never call this function with 'nothing to do', however we aught to quiet gcc 4's assumption that we can 'return status;' without having performed any operation that sets status. Reported by: jorton git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x@290558 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/proxy_http.c b/modules/proxy/proxy_http.c index 38c47245773..225b7011b4e 100644 --- a/modules/proxy/proxy_http.c +++ b/modules/proxy/proxy_http.c @@ -566,7 +566,7 @@ static apr_status_t stream_reqbody_cl(apr_pool_t *p, const char *old_cl_val) { int seen_eos = 0; - apr_status_t status; + apr_status_t status = APR_SUCCESS; apr_bucket_alloc_t *bucket_alloc = r->connection->bucket_alloc; apr_bucket_brigade *bb; apr_bucket *e;