]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Quiet a second error, bodyread is always set alongside bodylen,
authorWilliam A. Rowe Jr <wrowe@apache.org>
Tue, 20 Sep 2005 20:50:51 +0000 (20:50 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Tue, 20 Sep 2005 20:50:51 +0000 (20:50 +0000)
  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

modules/http/http_protocol.c

index 0ff727c6021d5d9cebbae4dae3f846b46185fb11..0bad324c42ee315a790cb923eb11d1baec33ef93 100644 (file)
@@ -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;