From c62dbdb9ec3244c8b324d8dbeb9ee14baac361f5 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Mon, 5 May 2003 19:50:49 -0400 Subject: [PATCH] Stupid think-o bugfix in test_io.c: Don't close data->outfile if it is stderr. --- lib/ext2fs/test_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ext2fs/test_io.c b/lib/ext2fs/test_io.c index 3d747e8..3510666 100644 --- a/lib/ext2fs/test_io.c +++ b/lib/ext2fs/test_io.c @@ -199,7 +199,7 @@ static errcode_t test_close(io_channel channel) if (data->real) retval = io_channel_close(data->real); - if (data->outfile) + if (data->outfile && data->outfile != stderr) fclose(data->outfile); ext2fs_free_mem((void **) &channel->private_data); -- 1.8.3.1