mirror of
https://github.com/moparisthebest/curl
synced 2024-11-05 00:55:04 -05:00
avoid warning: enum constant in boolean context
This commit is contained in:
parent
f6d13090d4
commit
0cf5670c54
@ -435,7 +435,7 @@ CURLcode Curl_readrewind(struct Curl_easy *data)
|
|||||||
; /* do nothing */
|
; /* do nothing */
|
||||||
else if(data->state.httpreq == HTTPREQ_POST_MIME ||
|
else if(data->state.httpreq == HTTPREQ_POST_MIME ||
|
||||||
data->state.httpreq == HTTPREQ_POST_FORM) {
|
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");
|
failf(data, "Cannot rewind mime/post data");
|
||||||
return CURLE_SEND_FAIL_REWIND;
|
return CURLE_SEND_FAIL_REWIND;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user