]> granicus.if.org Git - apache/commitdiff
Fix warning: 'nlen' may be used uninitialized in this function.
authorGraham Leggett <minfrin@apache.org>
Mon, 19 Dec 2011 16:10:22 +0000 (16:10 +0000)
committerGraham Leggett <minfrin@apache.org>
Mon, 19 Dec 2011 16:10:22 +0000 (16:10 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1220822 13f79535-47bb-0310-9956-ffa450edef68

server/apreq_cookie.c

index 417df9e715a1e7b97b26898aa705ce057bd1f8db..585482c68a67a5bc30b4847d94add6a3b239bca0 100644 (file)
@@ -327,7 +327,7 @@ APREQ_DECLARE(apr_status_t)apreq_parse_cookie_header(apr_pool_t *p,
     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;