mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-11-28 03:24:23 +01:00
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
This commit is contained in:
parent
48309a2dbc
commit
28c645f3ee
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user