You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by mi...@apache.org on 2011/12/19 17:10:23 UTC

svn commit: r1220822 - /httpd/httpd/trunk/server/apreq_cookie.c

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;