aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-21 10:43:06 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-21 10:47:41 +0900
commit6f167da65b799435f94af3c5d39a80968e284f44 (patch)
tree43ea0b40c617ce0d440bdc5d3bd0900d7a2ce16e /io.c
parent43725c60915753a88224583fafc87c0bac7c5422 (diff)
downloadruby-6f167da65b799435f94af3c5d39a80968e284f44.tar.gz
Fixed a variable name [Bug #16903]
Fix up of 0e3b0fcdba7 From: fd0 (Daisuke Fujimura)
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 26202e0806..34e8736a74 100644
--- a/io.c
+++ b/io.c
@@ -409,7 +409,7 @@ rb_cloexec_pipe(int descriptors[2])
return result;
#ifdef __CYGWIN__
- if (ret == 0 && descriptors[1] == -1) {
+ if (result == 0 && descriptors[1] == -1) {
close(descriptors[0]);
descriptors[0] = -1;
errno = ENFILE;