summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/io.c b/io.c
index 9d5bbc5656..a9fdf97b2b 100644
--- a/io.c
+++ b/io.c
@@ -1991,7 +1991,8 @@ f_select(argc, argv, obj)
int interrupt = 0;
int pending = 0;
- if (rb_scan_args(argc, argv, "13", &read, &write, &except, &timeout)<4) {
+ rb_scan_args(argc, argv, "13", &read, &write, &except, &timeout);
+ if (NIL_P(timeout)) {
tp = NULL;
}
else {