mirror of
https://github.com/curl/curl.git
synced 2026-07-26 01:27:15 +03:00
sendf: fix uninitialized variable in trace output
Initialize *nread early on. Pointed out by CodeSonar Closes #19684
This commit is contained in:
parent
ce06fe7771
commit
729f36e90f
1 changed files with 1 additions and 0 deletions
|
|
@ -1195,6 +1195,7 @@ CURLcode Curl_client_read(struct Curl_easy *data, char *buf, size_t blen,
|
|||
DEBUGASSERT(blen);
|
||||
DEBUGASSERT(nread);
|
||||
DEBUGASSERT(eos);
|
||||
*nread = 0;
|
||||
|
||||
if(!data->req.reader_stack) {
|
||||
result = Curl_creader_set_fread(data, data->state.infilesize);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue