]> granicus.if.org Git - apache/commitdiff
Merge r1798785 from trunk:
authorJoe Orton <jorton@apache.org>
Tue, 10 Oct 2017 11:25:14 +0000 (11:25 +0000)
committerJoe Orton <jorton@apache.org>
Tue, 10 Oct 2017 11:25:14 +0000 (11:25 +0000)
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

index 830ce5b38bc50ec2a3fafad3f4ca1eb0cd9accc1..8df1a4c936236cfbbc952e649a3a5dd549acf595 100644 (file)
@@ -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;