httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yla...@apache.org
Subject svn commit: r1798785 - /httpd/httpd/trunk/server/util.c
Date Wed, 14 Jun 2017 22:29:17 GMT
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;
 



Mime
View raw message