summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-15 13:03:03 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-15 13:03:03 +0000
commitd9630cc1a1290462c4219a4a7e01fd606fd4b24b (patch)
tree103855aa4cf8e366cf0462927a5ce63b115d3c9c /re.c
parentf29c158299ea83c3837ea298ff19556edcea576c (diff)
merge revision(s) 15924:
* re.c (rb_reg_quote): should always copy the quoting string. [ruby-core:16235] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r--re.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/re.c b/re.c
index 446ea4fa24..0a9f8f7c8e 100644
--- a/re.c
+++ b/re.c
@@ -1754,7 +1754,7 @@ rb_reg_quote(str)
goto meta_found;
}
}
- return str;
+ return rb_str_new3(str);
meta_found:
tmp = rb_str_new(0, RSTRING(str)->len*2);