summaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-10-16 03:27:23 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-10-16 03:27:23 +0000
commitb0d7895cab3ef8b405c9cf271e5e82f8dcf9258e (patch)
tree8b0c88d8205e604a152b6a50da54843f4e0ed9f4 /io.c
parent144fb05a78a6a92d496e1b7a025e18e1ef7ae4c5 (diff)
downloadruby-b0d7895cab3ef8b405c9cf271e5e82f8dcf9258e.tar.gz
ruby-b0d7895cab3ef8b405c9cf271e5e82f8dcf9258e.tar.xz
ruby-b0d7895cab3ef8b405c9cf271e5e82f8dcf9258e.zip
* string.c (rb_str_index): wrong increment for non alphanumeric
string. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/io.c b/io.c
index 53d6fedbe..8d75c291f 100644
--- a/io.c
+++ b/io.c
@@ -1231,10 +1231,6 @@ rb_io_sysread(io, len)
n = fileno(fptr->f);
rb_thread_wait_fd(fileno(fptr->f));
- if (fptr->f == 0) {
- fprintf(stderr, "bingo\n");
- exit(1);
- }
TRAP_BEG;
n = read(fileno(fptr->f), RSTRING(str)->ptr, RSTRING(str)->len);
TRAP_END;