diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-30 15:21:40 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-30 15:21:40 +0000 |
commit | dc36ca0ba52ec2707c91fd87ea55a423e97c5bd9 (patch) | |
tree | 4317d5716f802b5799bc0e47ab90e70ee9d3554e /io.c | |
parent | 8429f2be9fd3ac4bcc97580fece853fed6fc09bc (diff) | |
download | ruby-dc36ca0ba52ec2707c91fd87ea55a423e97c5bd9.tar.gz |
* io.c (select_internal): fix SEGV by `select [STDIN],nil,[STDIN]'.
fixed by Petr Chromec.
http://rubyforge.org/tracker/index.php?func=detail&aid=17275&group_id=426&atid=1698
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -5316,7 +5316,7 @@ select_internal(VALUE read, VALUE write, VALUE except, struct timeval *tp, rb_fd if (ep) { list = RARRAY_PTR(res)[2]; for (i=0; i< RARRAY_LEN(except); i++) { - VALUE obj = rb_ary_entry(write, i); + VALUE obj = rb_ary_entry(except, i); VALUE io = rb_io_get_io(obj); VALUE write_io = GetWriteIO(io); GetOpenFile(io, fptr); |