From 0cf5670c54bc6f94cea714d71bacab234ea23c51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Antoniak?= Date: Wed, 27 Jan 2021 14:40:24 +0100 Subject: [PATCH] avoid warning: enum constant in boolean context --- lib/transfer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/transfer.c b/lib/transfer.c index f9cdcd1d8..c0e87f708 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; }