mirror of https://github.com/moparisthebest/curl
imap: Small tidy up of imap_select() to match imap_append()
Updated the style of imap_select() before adding the LIST command.
This commit is contained in:
parent
c29346613d
commit
b960f1e8bd
|
@ -701,10 +701,10 @@ static CURLcode imap_select(struct connectdata *conn)
|
||||||
/* Make sure the mailbox is in the correct atom format */
|
/* Make sure the mailbox is in the correct atom format */
|
||||||
mailbox = imap_atom(imap->mailbox);
|
mailbox = imap_atom(imap->mailbox);
|
||||||
if(!mailbox)
|
if(!mailbox)
|
||||||
result = CURLE_OUT_OF_MEMORY;
|
return CURLE_OUT_OF_MEMORY;
|
||||||
else
|
|
||||||
/* Send the SELECT command */
|
/* Send the SELECT command */
|
||||||
result = imap_sendf(conn, "SELECT %s", mailbox);
|
result = imap_sendf(conn, "SELECT %s", mailbox);
|
||||||
|
|
||||||
Curl_safefree(mailbox);
|
Curl_safefree(mailbox);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue