requests: fix uninitialized var

init char whose address is passed for a 0-length buffer, clang does not
like it

Refs #18418
Closes #18420
This commit is contained in:
Stefan Eissing 2025-08-28 12:06:39 +02:00 committed by Daniel Stenberg
parent fa3baabbd8
commit f08ecdc586
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -308,7 +308,7 @@ static CURLcode req_flush(struct Curl_easy *data)
}
if(data->req.eos_read && !data->req.eos_sent) {
char tmp;
char tmp = 0;
size_t nwritten;
result = xfer_send(data, &tmp, 0, 0, &nwritten);
if(result)