summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 4c16918938..b99580f0a3 100644
--- a/io.c
+++ b/io.c
@@ -522,7 +522,7 @@ io_fread(ptr, len, f)
#endif
return len - n;
}
- rb_sys_fail(0);
+ return 0;
}
*ptr = '\0';
break;