mirror of
https://github.com/curl/curl.git
synced 2026-07-06 12:07:20 +03: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
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue