From 8da787be726465b0aab269fb4149ab5c062e7f92 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Thu, 2 Jul 2015 21:02:56 +0200 Subject: Remove mrb_io_s_select typo. Uncovered with a Coverity scan of our project using mruby-io. https://scan8.coverity.com/reports.htm#v26153/p11375/fileInstanceId=6844382&defectInstanceId=2515905&mergedDefectId=121921 --- src/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/io.c b/src/io.c index ede9d1060..ad3e3c3b7 100644 --- a/src/io.c +++ b/src/io.c @@ -743,7 +743,7 @@ retry: fptr = (struct mrb_io *)mrb_get_datatype(mrb, RARRAY_PTR(except)[i], &mrb_io_type); if (FD_ISSET(fptr->fd, ep)) { mrb_ary_push(mrb, list, RARRAY_PTR(except)[i]); - } else if (fptr->fd2 >= 0 && FD_ISSET(fptr->fd2, wp)) { + } else if (fptr->fd2 >= 0 && FD_ISSET(fptr->fd2, ep)) { mrb_ary_push(mrb, list, RARRAY_PTR(except)[i]); } } -- cgit v1.2.3