summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-08-17 08:31:02 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-08-17 08:31:02 +0000
commitecf157699dfdeaf813ca8a017ad53209cbfa8350 (patch)
treed84103244e9bebcfedefc67ac8f08ad6f0e77c73 /string.c
parent5a72ce5cfa0b0f69e62c02d647ccd63f01b5a3d1 (diff)
* io.c (rb_io_reopen): should clear allocated OpenFile. pointed
out by Guy Decoux. [ruby-core:03288] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/string.c b/string.c
index 7dd824186f..382feb4d84 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");