summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-31 17:35:27 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-31 17:35:27 (GMT)
commit00716bee784e4f405707a38e8709e71490c7d1bb (patch)
tree817c161c0c3e019972f9b55f058a4d5d7d09f30c /io.c
parentaff05774ad229de043d17e853b094845c6da977a (diff)
io.c: fix comparison subject
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index eb12d95..a1158a2 100644
--- a/io.c
+++ b/io.c
@@ -6202,7 +6202,7 @@ fptr_copy_finalizer(rb_io_t *fptr, const rb_io_t *orig)
#if defined(__CYGWIN__) || !defined(HAVE_WORKING_FORK)
void (*const old_finalize)(struct rb_io_t*,int) = fptr->finalize;
- if (old_finalize == fptr->finalize) return;
+ if (old_finalize == orig->finalize) return;
#endif
fptr->finalize = orig->finalize;