summaryrefslogtreecommitdiff
path: root/lib/transfer.c
diff options
context:
space:
mode:
authorMichaƂ Antoniak <m.antoniak@posnet.com.pl>2021-01-27 14:40:24 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-01-29 14:47:26 +0100
commit0cf5670c54bc6f94cea714d71bacab234ea23c51 (patch)
treec93d3c34f2f95e6f0455272499498a91596c0f7d /lib/transfer.c
parentf6d13090d4b108af75426f1ba225e31c9d4f61cf (diff)
downloadcurl-0cf5670c54bc6f94cea714d71bacab234ea23c51.tar.gz
avoid warning: enum constant in boolean context
Diffstat (limited to 'lib/transfer.c')
-rw-r--r--lib/transfer.c2
1 files changed, 1 insertions, 1 deletions
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;
}