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
1 changed files with 1 additions and 1 deletions

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