From: Joe Orton Date: Tue, 19 Jul 2005 14:34:28 +0000 (+0000) Subject: * modules/http/http_filters.c (ap_send_http_trace): Silence gcc X-Git-Tag: 2.1.7~5^2~96 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4320ae82b241a9e9ae01d29f9d0286185dda2542;p=apache * modules/http/http_filters.c (ap_send_http_trace): Silence gcc variable-may-be-used-uninitialized warnings. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@219696 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_filters.c b/modules/http/http_filters.c index 7d354ae5c9..f94d93101d 100644 --- a/modules/http/http_filters.c +++ b/modules/http/http_filters.c @@ -765,10 +765,10 @@ 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; + long res = -1; /* init to avoid gcc -Wall warning */ if (r->method_number != M_TRACE) { return DECLINED;