diff options
author | Daniel Stenberg <daniel@haxx.se> | 2015-11-06 23:44:27 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-11-06 23:44:27 +0100 |
commit | 1a614c6c3764dc400d46d0db473192bf10cbb001 (patch) | |
tree | 7c4bc14a55968d6498dff04fc78309e59fb1c7d3 | |
parent | 505d966850bdb1067629010f952005f63d1fa78a (diff) |
imap: fix compiler warning
imap.c:657:13: error: assignment discards 'const' qualifier from pointer
target type [-Werror=discarded-qualifiers]
-rw-r--r-- | lib/imap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/imap.c b/lib/imap.c index 8d805e83d..28525554e 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -654,7 +654,7 @@ static CURLcode imap_perform_list(struct connectdata *conn) imap->custom_params ? imap->custom_params : ""); else { /* Make sure the mailbox is in the correct atom format if necessary */ - mailbox = imap->mailbox ? imap_atom(imap->mailbox) : ""; + mailbox = imap->mailbox ? imap_atom(imap->mailbox) : (char *)""; if(!mailbox) return CURLE_OUT_OF_MEMORY; |