diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-15 12:59:03 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-15 12:59:03 +0000 |
commit | 67e558f07978c96ed7b9ca920bea771745e300e0 (patch) | |
tree | dd4f1376828da8bc847ff3284d7d6554e8127fd5 /re.c | |
parent | 86c4bcac89f49994ba76501820290c5fb1bdfb48 (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_5@17232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r-- | re.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |