diff options
author | Steve Holme <steve_holme@hotmail.com> | 2016-03-19 11:01:36 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2016-03-19 11:01:36 +0000 |
commit | 97c9d2ae8c472bb199db1b58f0cb117200a2069c (patch) | |
tree | 3179ca7789f8dbeaf77d429728b6feb64ae7a474 /lib | |
parent | 2107a952e89831d9232ca3c53c16415848a8deb2 (diff) |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/imap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/imap.c b/lib/imap.c index 0339add48..a3d2cad22 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -1102,7 +1102,7 @@ static CURLcode imap_state_fetch_resp(struct connectdata *conn, int imapcode, struct pingpong *pp = &imapc->pp; const char *ptr = data->state.buffer; bool parsed = FALSE; - curl_off_t size; + curl_off_t size = 0; (void)instate; /* no use for this yet */ |