summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/io.c b/io.c
index 3e0ff9e90b..bfe07df80c 100644
--- a/io.c
+++ b/io.c
@@ -1344,6 +1344,7 @@ io_reopen(io, nfile)
nfile = io_get_io(nfile);
GetOpenFile(nfile, orig);
+ if (fptr == orig) return io;
if (orig->f2) {
fflush(orig->f2);
}