mirror of
https://github.com/mirror/wget.git
synced 2026-08-19 09:23:27 +08:00
* src/init.c (cleanup): Do not close stdout on exit
This commit is contained in:
@@ -1938,7 +1938,7 @@ cleanup (void)
|
|||||||
|
|
||||||
log_close ();
|
log_close ();
|
||||||
|
|
||||||
if (output_stream && output_stream != stderr)
|
if (output_stream && output_stream != stderr && output_stream != stdout)
|
||||||
{
|
{
|
||||||
FILE *fp = output_stream;
|
FILE *fp = output_stream;
|
||||||
output_stream = NULL;
|
output_stream = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user