mirror of
https://github.com/curl/curl.git
synced 2026-07-10 04:37:15 +03:00
tool: do not flush on out-null
Do not flush output when --out-null is set. Closes #22165
This commit is contained in:
parent
46e19c8744
commit
7b3316984f
1 changed files with 1 additions and 1 deletions
|
|
@ -671,7 +671,7 @@ static CURLcode post_output_handling(struct per_transfer *per,
|
|||
return CURLE_WRITE_ERROR;
|
||||
}
|
||||
|
||||
if(!outs->regular_file && outs->stream) {
|
||||
if(!outs->regular_file && outs->stream && !outs->out_null) {
|
||||
/* Dump standard stream buffered data */
|
||||
rc = fflush(outs->stream);
|
||||
if(!result && rc) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue