aboutsummaryrefslogtreecommitdiff
path: root/lib/imap.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-11-06 23:44:27 +0100
committerDaniel Stenberg <daniel@haxx.se>2015-11-06 23:44:27 +0100
commit1a614c6c3764dc400d46d0db473192bf10cbb001 (patch)
tree7c4bc14a55968d6498dff04fc78309e59fb1c7d3 /lib/imap.c
parent505d966850bdb1067629010f952005f63d1fa78a (diff)
imap: fix compiler warning
imap.c:657:13: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
Diffstat (limited to 'lib/imap.c')
-rw-r--r--lib/imap.c2
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;