aboutsummaryrefslogtreecommitdiff
path: root/src/common/windows
diff options
context:
space:
mode:
authorbryner <bryner@4c0a9323-5329-0410-9bdc-e9ce6186880e>2007-09-20 21:48:47 +0000
committerbryner <bryner@4c0a9323-5329-0410-9bdc-e9ce6186880e>2007-09-20 21:48:47 +0000
commit28c645f3ee1d33c20e6ad7314c1454e8254809f2 (patch)
tree7f228a5ba5b6136854e61b7007312735e43cfaf5 /src/common/windows
parentIssue 208: Reviewer waylonis (diff)
downloadbreakpad-28c645f3ee1d33c20e6ad7314c1454e8254809f2.tar.xz
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
Diffstat (limited to 'src/common/windows')
-rw-r--r--src/common/windows/http_upload.cc2
1 files changed, 1 insertions, 1 deletions
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,