From 28c645f3ee1d33c20e6ad7314c1454e8254809f2 Mon Sep 17 00:00:00 2001 From: bryner Date: Thu, 20 Sep 2007 21:48:47 +0000 Subject: [PATCH] Silences warning C4701: local variable 'claimed_size' may be used with out having been initialized. The code is correct however the compiler can't see the relationship between has_content_length_header and the claimed_size so it generates a warning. Patch from Sorin Jianu, r=bryner git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@211 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/common/windows/http_upload.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/windows/http_upload.cc b/src/common/windows/http_upload.cc index 24a0c2c3..6bda3b92 100644 --- a/src/common/windows/http_upload.cc +++ b/src/common/windows/http_upload.cc @@ -179,7 +179,7 @@ bool HTTPUpload::ReadResponse(HINTERNET request, wstring *response) { bool has_content_length_header = false; wchar_t content_length[32]; DWORD content_length_size = sizeof(content_length); - DWORD claimed_size; + DWORD claimed_size = 0; string response_body; if (HttpQueryInfo(request, HTTP_QUERY_CONTENT_LENGTH,