From b0d7895cab3ef8b405c9cf271e5e82f8dcf9258e Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 16 Oct 2001 03:27:23 +0000 Subject: * 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 --- io.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'io.c') 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; -- cgit