summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-14 07:18:58 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-14 07:18:58 +0000
commit9144491376799259d3430ad36c0c862b21c053a2 (patch)
tree94d7468da354e1b2f772d982b8d271289a947e28 /re.c
parentce175376b2a0460d746270831d35240595cac276 (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r--re.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/re.c b/re.c
index d4e2bad..a955852 100644
--- a/re.c
+++ b/re.c
@@ -968,7 +968,9 @@ rb_reg_match_m(re, str)
VALUE result = rb_reg_match(re, str);
if (NIL_P(result)) return Qnil;
- return rb_backref_get();
+ result = rb_backref_get();
+ rb_match_busy(result);
+ return result;
}
static VALUE