Skip to content

Commit dd4d3ac

Browse files
committed
* 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
1 parent 820fb42 commit dd4d3ac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/http/http_filters.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -765,10 +765,10 @@ AP_DECLARE_NONSTD(int) ap_send_http_trace(request_rec *r)
765765
header_struct h;
766766
apr_bucket *b;
767767
int body;
768-
char *bodyread, *bodyoff;
768+
char *bodyread = NULL, *bodyoff;
769769
apr_size_t bodylen = 0;
770770
apr_size_t bodybuf;
771-
long res;
771+
long res = -1; /* init to avoid gcc -Wall warning */
772772

773773
if (r->method_number != M_TRACE) {
774774
return DECLINED;

0 commit comments

Comments
 (0)