From f48c6eb96b0525f1e97600bbf6c27a06dbdfb6dc Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Tue, 10 Oct 2017 11:25:14 +0000 Subject: [PATCH] Merge r1798785 from trunk: Quiet spurious gcc warning in ap_parse_form_data ("'escaped_char[0]' may be used uninitialized in this function"). Submitted by: ylavic Reviewed by: jailletc36, ylavic, jorton git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1811669 13f79535-47bb-0310-9956-ffa450edef68 --- server/util.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/util.c b/server/util.c index 830ce5b38b..8df1a4c936 100644 --- a/server/util.c +++ b/server/util.c @@ -2663,8 +2663,7 @@ AP_DECLARE(int) ap_parse_form_data(request_rec *r, ap_filter_t *f, ap_form_type_t state = FORM_NAME, percent = FORM_NORMAL; ap_form_pair_t *pair = NULL; apr_array_header_t *pairs = apr_array_make(r->pool, 4, sizeof(ap_form_pair_t)); - - char escaped_char[2]; + char escaped_char[2] = { 0 }; *ptr = pairs; -- 2.40.0