You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by yl...@apache.org on 2017/06/14 22:29:17 UTC

svn commit: r1798785 - /httpd/httpd/trunk/server/util.c

Author: ylavic
Date: Wed Jun 14 22:29:17 2017
New Revision: 1798785

URL: http://svn.apache.org/viewvc?rev=1798785&view=rev
Log:
Quiet spurious gcc warning in ap_parse_form_data ("'escaped_char[0]' may be
used uninitialized in this function").


Modified:
    httpd/httpd/trunk/server/util.c

Modified: httpd/httpd/trunk/server/util.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/util.c?rev=1798785&r1=1798784&r2=1798785&view=diff
==============================================================================
--- httpd/httpd/trunk/server/util.c (original)
+++ httpd/httpd/trunk/server/util.c Wed Jun 14 22:29:17 2017
@@ -2683,8 +2683,7 @@ AP_DECLARE(int) ap_parse_form_data(reque
     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;