From 2224409994a09fadf356a66367ce285f4f03e9f0 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 5 Nov 1995 05:51:53 +0000 Subject: (close_output_file): Set output_stream to NULL so we don't recurse endlessly between this function and cleanup. --- src/csplit.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/csplit.c') 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) -- cgit v1.2.3-70-g09d2