diff Core/HttpServer/MultipartStreamReader.cpp @ 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 327bace7e98a
children 94f4a18a79cc
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))