From: William A. Rowe Jr Date: Tue, 20 Sep 2005 20:50:51 +0000 (+0000) Subject: Quiet a second error, bodyread is always set alongside bodylen, X-Git-Tag: 2.0.55~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ba1d83c001f1bef2441093821b6c363fbfa43b3;p=thirdparty%2Fapache%2Fhttpd.git Quiet a second error, bodyread is always set alongside bodylen, and we would never use the bodyread unless bodylen is set. However gcc4 doesn't like our style, so quiet the compiler. Reported by: jorton git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x@290561 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index 0ff727c6021..0bad324c42e 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -1374,7 +1374,7 @@ AP_DECLARE_NONSTD(int) ap_send_http_trace(request_rec *r) header_struct h; apr_bucket *b; int body; - char *bodyread, *bodyoff; + char *bodyread = NULL, *bodyoff; apr_size_t bodylen = 0; apr_size_t bodybuf; long res;