diff options
Diffstat (limited to 'lib/transfer.c')
| -rw-r--r-- | lib/transfer.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/lib/transfer.c b/lib/transfer.c index a476352d3..7436a9c66 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -343,7 +343,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,          didwhat |= KEEP_READ;          /* indicates data of zero size, i.e. empty file */ -        is_empty_data = (nread == 0 && k->bodywrites == 0); +        is_empty_data = (bool)((nread == 0) && (k->bodywrites == 0));          /* NULL terminate, allowing string ops to be used */          if (0 < nread || is_empty_data) { @@ -1484,7 +1484,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,    }    /* Now update the "done" boolean we return */ -  *done = !k->keepon; +  *done = (bool)(0 == k->keepon);    return CURLE_OK;  } | 
