From: MichaƂ Antoniak Date: Wed, 27 Jan 2021 13:40:24 +0000 (+0100) Subject: avoid warning: enum constant in boolean context X-Git-Tag: curl-7_75_0~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0cf5670c54bc6f94cea714d71bacab234ea23c51;p=thirdparty%2Fcurl.git avoid warning: enum constant in boolean context --- diff --git a/lib/transfer.c b/lib/transfer.c index f9cdcd1d81..c0e87f708d 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -435,7 +435,7 @@ CURLcode Curl_readrewind(struct Curl_easy *data) ; /* do nothing */ else if(data->state.httpreq == HTTPREQ_POST_MIME || data->state.httpreq == HTTPREQ_POST_FORM) { - if(Curl_mime_rewind(mimepart)) { + if(Curl_mime_rewind(mimepart) != CURLE_OK) { failf(data, "Cannot rewind mime/post data"); return CURLE_SEND_FAIL_REWIND; }