From 00716bee784e4f405707a38e8709e71490c7d1bb Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 31 Jan 2018 17:35:27 +0000 Subject: [PATCH] io.c: fix comparison subject git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io.c b/io.c index eb12d95fe4..a1158a2b86 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;