diff options
Diffstat (limited to 'src/csplit.c')
-rw-r--r-- | src/csplit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/csplit.c b/src/csplit.c index a81144a66..f40a102b2 100644 --- a/src/csplit.c +++ b/src/csplit.c @@ -1037,6 +1037,7 @@ close_output_file () if (fclose (output_stream) == EOF) { error (0, errno, _("write error for `%s'"), output_filename); + output_stream = NULL; cleanup (); } if (bytes_written == 0 && elide_empty_files) |