From 68c253043a6245dd9607eeb8a03b3cf07fa56c2a Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 17 Aug 2004 08:31:02 +0000 Subject: * io.c (rb_io_reopen): should clear allocated OpenFile. pointed out by Guy Decoux. [ruby-core:03288] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'string.c') diff --git a/string.c b/string.c index 7dd824186..382feb4d8 100644 --- a/string.c +++ b/string.c @@ -1242,9 +1242,6 @@ static VALUE rb_str_match(x, y) VALUE x, y; { - VALUE reg; - long start; - switch (TYPE(y)) { case T_STRING: rb_raise(rb_eTypeError, "type mismatch: String given"); -- cgit