Whamcloud - gitweb
Stupid think-o bugfix in test_io.c: Don't close data->outfile
authorTheodore Ts'o <tytso@mit.edu>
Mon, 5 May 2003 23:50:49 +0000 (19:50 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 5 May 2003 23:50:49 +0000 (19:50 -0400)
if it is stderr.

lib/ext2fs/test_io.c

index 3d747e8..3510666 100644 (file)
@@ -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);