summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
Diffstat (limited to 're.c')
-rw-r--r--re.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/re.c b/re.c
index 04d4978..540ae28 100644
--- a/re.c
+++ b/re.c
@@ -275,10 +275,7 @@ static VALUE
rb_reg_source(re)
VALUE re;
{
- VALUE str = rb_str_new(0,0);
- rb_reg_expr_str(str, RREGEXP(re)->str, RREGEXP(re)->len);
-
- return str;
+ return rb_str_new(RREGEXP(re)->str,RREGEXP(re)->len);
}
static VALUE