1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-11 20:15:03 -05:00

imap: Another minor comment addition / tidy up

This commit is contained in:
Steve Holme 2013-02-28 22:51:32 +00:00
parent b06a786226
commit 48596f87a9

View File

@ -675,13 +675,16 @@ static CURLcode imap_select(struct connectdata *conn)
Curl_safefree(imapc->mailbox); Curl_safefree(imapc->mailbox);
Curl_safefree(imapc->mailbox_uidvalidity); Curl_safefree(imapc->mailbox_uidvalidity);
/* Make sure the mailbox is in the correct atom format */
mailbox = imap_atom(imap->mailbox ? imap->mailbox : ""); mailbox = imap_atom(imap->mailbox ? imap->mailbox : "");
if(!mailbox) if(!mailbox)
result = CURLE_OUT_OF_MEMORY; result = CURLE_OUT_OF_MEMORY;
else else
/* Send the SELECT command */
result = imap_sendf(conn, "SELECT %s", mailbox); result = imap_sendf(conn, "SELECT %s", mailbox);
Curl_safefree(mailbox); Curl_safefree(mailbox);
if(!result) if(!result)
state(conn, IMAP_SELECT); state(conn, IMAP_SELECT);
@ -697,6 +700,7 @@ static CURLcode imap_fetch(struct connectdata *conn)
result = imap_sendf(conn, "FETCH %s BODY[%s]", result = imap_sendf(conn, "FETCH %s BODY[%s]",
imap->uid ? imap->uid : "1", imap->uid ? imap->uid : "1",
imap->section ? imap->section : ""); imap->section ? imap->section : "");
if(!result) if(!result)
state(conn, IMAP_FETCH); state(conn, IMAP_FETCH);