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:
parent
505d966850
commit
1a614c6c37
@ -654,7 +654,7 @@ static CURLcode imap_perform_list(struct connectdata *conn)
|
|||||||
imap->custom_params ? imap->custom_params : "");
|
imap->custom_params ? imap->custom_params : "");
|
||||||
else {
|
else {
|
||||||
/* Make sure the mailbox is in the correct atom format if necessary */
|
/* 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)
|
if(!mailbox)
|
||||||
return CURLE_OUT_OF_MEMORY;
|
return CURLE_OUT_OF_MEMORY;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user