[前][次][番号順一覧][スレッド一覧]

ruby-changes:61307

From: Nobuyoshi <ko1@a...>
Date: Thu, 21 May 2020 11:17:32 +0900 (JST)
Subject: [ruby-changes:61307] 6f167da65b (master): Fixed a variable name [Bug #16903]

https://git.ruby-lang.org/ruby.git/commit/?id=6f167da65b

From 6f167da65b799435f94af3c5d39a80968e284f44 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 21 May 2020 10:43:06 +0900
Subject: Fixed a variable name [Bug #16903]

Fix up of 0e3b0fcdba7

From: fd0 (Daisuke Fujimura)

diff --git a/io.c b/io.c
index 26202e0..34e8736 100644
--- a/io.c
+++ b/io.c
@@ -409,7 +409,7 @@ rb_cloexec_pipe(int descriptors[2]) https://github.com/ruby/ruby/blob/trunk/io.c#L409
         return result;
 
 #ifdef __CYGWIN__
-    if (ret == 0 && descriptors[1] == -1) {
+    if (result == 0 && descriptors[1] == -1) {
         close(descriptors[0]);
         descriptors[0] = -1;
         errno = ENFILE;
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]