diff options
author | MichaĆ Antoniak <m.antoniak@posnet.com.pl> | 2021-01-27 14:40:24 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-01-29 14:47:26 +0100 |
commit | 0cf5670c54bc6f94cea714d71bacab234ea23c51 (patch) | |
tree | c93d3c34f2f95e6f0455272499498a91596c0f7d | |
parent | f6d13090d4b108af75426f1ba225e31c9d4f61cf (diff) | |
download | curl-0cf5670c54bc6f94cea714d71bacab234ea23c51.tar.gz |
avoid warning: enum constant in boolean context
-rw-r--r-- | lib/transfer.c | 2 |
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; } |