mirror of
https://github.com/curl/curl.git
synced 2026-07-16 12:47:16 +03:00
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:
parent
fa3baabbd8
commit
f08ecdc586
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue