From: Yann Ylavic Date: Wed, 14 Jun 2017 22:29:17 +0000 (+0000) Subject: Quiet spurious gcc warning in ap_parse_form_data ("'escaped_char[0]' may be X-Git-Tag: 2.5.0-alpha~373 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=96406317e48cdb290604b58ab3ea6490512f5d7e;p=thirdparty%2Fapache%2Fhttpd.git Quiet spurious gcc warning in ap_parse_form_data ("'escaped_char[0]' may be used uninitialized in this function"). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1798785 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/util.c b/server/util.c index 06d3c970768..4018b9f0ed5 100644 --- a/server/util.c +++ b/server/util.c @@ -2683,8 +2683,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;