mirror of
https://github.com/mirror/wget.git
synced 2025-03-13 19:30:20 +08:00
* src/init.c (cleanup): Set output_stream to NULL after closing
This commit is contained in:
parent
01002a168a
commit
05a8c064e9
@ -1901,8 +1901,11 @@ cleanup (void)
|
|||||||
log_close ();
|
log_close ();
|
||||||
|
|
||||||
if (output_stream)
|
if (output_stream)
|
||||||
if (fclose (output_stream) == EOF)
|
{
|
||||||
inform_exit_status (CLOSEFAILED);
|
if (fclose (output_stream) == EOF)
|
||||||
|
inform_exit_status (CLOSEFAILED);
|
||||||
|
output_stream = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
/* No need to check for error because Wget flushes its output (and
|
/* No need to check for error because Wget flushes its output (and
|
||||||
checks for errors) after any data arrives. */
|
checks for errors) after any data arrives. */
|
||||||
|
Loading…
Reference in New Issue
Block a user