diff --git a/lib/sendf.c b/lib/sendf.c index 7b00c4ce48..0fc8252523 100644 --- a/lib/sendf.c +++ b/lib/sendf.c @@ -520,6 +520,8 @@ CURLcode Curl_creader_read(struct Curl_easy *data, struct Curl_creader *reader, char *buf, size_t blen, size_t *nread, bool *eos) { + *nread = 0; + *eos = FALSE; if(!reader) return CURLE_READ_ERROR; return reader->crt->do_read(data, reader, buf, blen, nread, eos);