httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r1220822 - /httpd/httpd/trunk/server/apreq_cookie.c
Date Mon, 19 Dec 2011 16:10:23 GMT
Author: minfrin
Date: Mon Dec 19 16:10:22 2011
New Revision: 1220822

URL: http://svn.apache.org/viewvc?rev=1220822&view=rev
Log:
Fix warning: 'nlen' may be used uninitialized in this function.

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

Modified: httpd/httpd/trunk/server/apreq_cookie.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/apreq_cookie.c?rev=1220822&r1=1220821&r2=1220822&view=diff
==============================================================================
--- httpd/httpd/trunk/server/apreq_cookie.c (original)
+++ httpd/httpd/trunk/server/apreq_cookie.c Mon Dec 19 16:10:22 2011
@@ -327,7 +327,7 @@ APREQ_DECLARE(apr_status_t)apreq_parse_c
     for (;;) {
         apr_status_t status;
         const char *name, *value;
-        apr_size_t nlen, vlen;
+        apr_size_t nlen = 0, vlen;
 
         while (*hdr == ';' || apr_isspace(*hdr))
             ++hdr;



Mime
View raw message