1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

imap.c: Fixed compilation warning with /Wall enabled

warning C4701: potentially uninitialized local variable 'size' used

Technically this can't happen, as the usage of 'size' is protected by
'if(parsed)' and 'parsed' is only set after 'size' has been parsed.

Anyway, lets keep the compiler happy.
This commit is contained in:
Steve Holme 2016-03-19 11:01:36 +00:00
parent 2107a952e8
commit 97c9d2ae8c

View File

@ -1102,7 +1102,7 @@ static CURLcode imap_state_fetch_resp(struct connectdata *conn, int imapcode,
struct pingpong *pp = &imapc->pp; struct pingpong *pp = &imapc->pp;
const char *ptr = data->state.buffer; const char *ptr = data->state.buffer;
bool parsed = FALSE; bool parsed = FALSE;
curl_off_t size; curl_off_t size = 0;
(void)instate; /* no use for this yet */ (void)instate; /* no use for this yet */