diff options
author | Joe Orton <jorton@apache.org> | 2017-10-10 11:25:14 +0000 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2017-10-10 11:25:14 +0000 |
commit | f48c6eb96b0525f1e97600bbf6c27a06dbdfb6dc (patch) | |
tree | 8f40a1d7d6a7486876afb09a75a8c33ca7410924 /server | |
parent | 23aad78a3c033118721531847b28bf4a89341535 (diff) | |
download | httpd-f48c6eb96b0525f1e97600bbf6c27a06dbdfb6dc.tar.gz |
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
Diffstat (limited to 'server')
-rw-r--r-- | server/util.c | 3 |
1 files changed, 1 insertions, 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; |