diff options
Diffstat (limited to 'lib/imap.c')
-rw-r--r-- | lib/imap.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/imap.c b/lib/imap.c index 66dede9db..48b4309cb 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -767,7 +767,7 @@ static CURLcode imap_fetch(struct connectdata *conn) static CURLcode imap_append(struct connectdata *conn) { - CURLcode result; + CURLcode result = CURLE_OK; struct IMAP *imap = conn->data->state.proto.imap; char *mailbox; @@ -1685,9 +1685,8 @@ static CURLcode imap_block_statemach(struct connectdata *conn) CURLcode result = CURLE_OK; struct imap_conn *imapc = &conn->proto.imapc; - while(imapc->state != IMAP_STOP && !result) { + while(imapc->state != IMAP_STOP && !result) result = Curl_pp_statemach(&imapc->pp, TRUE); - } return result; } |