1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 16:48:49 -05:00

avoid warning: enum constant in boolean context

This commit is contained in:
Michał Antoniak 2021-01-27 14:40:24 +01:00 committed by Daniel Stenberg
parent f6d13090d4
commit 0cf5670c54
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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;
}