diff options
author | Steve Holme <steve_holme@hotmail.com> | 2013-03-07 22:44:10 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-03-07 22:44:10 +0000 |
commit | cc890906b152dfb96acc8e9f571124dbdf8d8416 (patch) | |
tree | 612b68aa3386c4837ff31225717881d1a54bb64e /lib/imap.c | |
parent | b99c9f7c7ffbe244deafeabf0ef8c8ec438452c6 (diff) |
email: Minor code tidy up following recent changes
Removed unwanted braces and added variable initialisation.
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; } |