mirror of
https://github.com/curl/curl.git
synced 2024-12-27 06:59:43 +08:00
Curl_creader_read: init two variables to avoid using them uninited
Spotted by CodeSonar Closes #13419
This commit is contained in:
parent
a032e97f2b
commit
fe226af174
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user