1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fixed a variable name [Bug #16903]

Fix up of 0e3b0fcdba

From: fd0 (Daisuke Fujimura)
This commit is contained in:
Nobuyoshi Nakada 2020-05-21 10:43:06 +09:00
parent 43725c6091
commit 6f167da65b
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

2
io.c
View file

@ -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;