aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-03-05 19:59:53 +0000
committerSteve Holme <steve_holme@hotmail.com>2013-03-05 19:59:53 +0000
commitb960f1e8bd7b9549ed5b1aaed104f94dd8a06693 (patch)
treeacf831f62ce2f22b0a8f59114be49348bd4ab22b
parentc29346613d4e3803d66da7b86eae752ba88b4bee (diff)
imap: Small tidy up of imap_select() to match imap_append()
Updated the style of imap_select() before adding the LIST command.
-rw-r--r--lib/imap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/imap.c b/lib/imap.c
index 29784e9e8..9d39cc6d0 100644
--- a/lib/imap.c
+++ b/lib/imap.c
@@ -701,10 +701,10 @@ static CURLcode imap_select(struct connectdata *conn)
/* Make sure the mailbox is in the correct atom format */
mailbox = imap_atom(imap->mailbox);
if(!mailbox)
- result = CURLE_OUT_OF_MEMORY;
- else
- /* Send the SELECT command */
- result = imap_sendf(conn, "SELECT %s", mailbox);
+ return CURLE_OUT_OF_MEMORY;
+
+ /* Send the SELECT command */
+ result = imap_sendf(conn, "SELECT %s", mailbox);
Curl_safefree(mailbox);