diff options
author | Steve Holme <steve_holme@hotmail.com> | 2015-11-06 21:49:26 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2015-11-06 21:49:26 +0000 |
commit | 505d966850bdb1067629010f952005f63d1fa78a (patch) | |
tree | 91189dcc04f00a6f2c4cd8180ebc8dba77f3e1e7 /lib | |
parent | 748ffc77c621001d7db57fafd7370b7ff246e341 (diff) |
imap: Don't call imap_atom() when no mailbox specified in LIST command
Diffstat (limited to 'lib')
-rw-r--r-- | lib/imap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/imap.c b/lib/imap.c index e6d83f2cf..8d805e83d 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -653,8 +653,8 @@ static CURLcode imap_perform_list(struct connectdata *conn) result = imap_sendf(conn, "%s%s", imap->custom, imap->custom_params ? imap->custom_params : ""); else { - /* Make sure the mailbox is in the correct atom format */ - mailbox = imap_atom(imap->mailbox ? imap->mailbox : ""); + /* Make sure the mailbox is in the correct atom format if necessary */ + mailbox = imap->mailbox ? imap_atom(imap->mailbox) : ""; if(!mailbox) return CURLE_OUT_OF_MEMORY; |