1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

imap: fix compiler warning

imap.c:657:13: error: assignment discards 'const' qualifier from pointer
target type [-Werror=discarded-qualifiers]
This commit is contained in:
Daniel Stenberg 2015-11-06 23:44:27 +01:00
parent 505d966850
commit 1a614c6c37

View File

@ -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;