changeset 3439:fbcde0d66ed8

fixed wrong warning about uninitialized variable
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 21 Jun 2019 17:19:33 +0200
parents d97ef941d521
children 77702c19a2fa
files Core/HttpServer/MultipartStreamReader.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Core/HttpServer/MultipartStreamReader.cpp	Thu Jun 20 22:13:00 2019 +0200
+++ b/Core/HttpServer/MultipartStreamReader.cpp	Fri Jun 21 17:19:33 2019 +0200
@@ -175,7 +175,7 @@
       HttpHeaders headers;
       ParseHeaders(headers, start, headersMatcher_.GetMatchBegin());
 
-      size_t contentLength;
+      size_t contentLength = 0;
       if (!LookupHeaderSizeValue(contentLength, headers, "content-length"))
       {
         if (boundaryMatcher_.Apply(headersMatcher_.GetMatchEnd(), corpusEnd))