comparison 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
comparison
equal deleted inserted replaced
3438:d97ef941d521 3439:fbcde0d66ed8
173 } 173 }
174 174
175 HttpHeaders headers; 175 HttpHeaders headers;
176 ParseHeaders(headers, start, headersMatcher_.GetMatchBegin()); 176 ParseHeaders(headers, start, headersMatcher_.GetMatchBegin());
177 177
178 size_t contentLength; 178 size_t contentLength = 0;
179 if (!LookupHeaderSizeValue(contentLength, headers, "content-length")) 179 if (!LookupHeaderSizeValue(contentLength, headers, "content-length"))
180 { 180 {
181 if (boundaryMatcher_.Apply(headersMatcher_.GetMatchEnd(), corpusEnd)) 181 if (boundaryMatcher_.Apply(headersMatcher_.GetMatchEnd(), corpusEnd))
182 { 182 {
183 size_t d = std::distance(headersMatcher_.GetMatchEnd(), boundaryMatcher_.GetMatchBegin()); 183 size_t d = std::distance(headersMatcher_.GetMatchEnd(), boundaryMatcher_.GetMatchBegin());