Curl_creader_read: init two variables to avoid using them uninited

Spotted by CodeSonar

Closes #13419
This commit is contained in:
Daniel Stenberg 2024-04-19 09:42:25 +02:00
parent a032e97f2b
commit fe226af174
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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);