sendf: fix uninitialized variable in trace output

Initialize *nread early on.

Pointed out by CodeSonar

Closes #19684
This commit is contained in:
Daniel Stenberg 2025-11-25 08:53:59 +01:00
parent ce06fe7771
commit 729f36e90f
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

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