]> granicus.if.org Git - apache/commitdiff
* modules/http/http_filters.c (ap_send_http_trace): Silence gcc
authorJoe Orton <jorton@apache.org>
Tue, 19 Jul 2005 14:34:28 +0000 (14:34 +0000)
committerJoe Orton <jorton@apache.org>
Tue, 19 Jul 2005 14:34:28 +0000 (14:34 +0000)
variable-may-be-used-uninitialized warnings.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@219696 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_filters.c

index 7d354ae5c94c21e5c17cb0b993b773640348a1e2..f94d93101d3f8742ab451b824f7800c59c3e104e 100644 (file)
@@ -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;