mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* string.c (str_gsub): use STR_NOCAPA.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
018837b84f
commit
4fabf11840
1 changed files with 1 additions and 1 deletions
2
string.c
2
string.c
|
@ -2116,7 +2116,7 @@ str_gsub(argc, argv, str, bang)
|
|||
if (str_independent(str)) {
|
||||
free(RSTRING(str)->ptr);
|
||||
}
|
||||
FL_UNSET(str, ELTS_SHARED|STR_ASSOC);
|
||||
FL_UNSET(str, STR_NOCAPA);
|
||||
RSTRING(str)->ptr = buf;
|
||||
RSTRING(str)->aux.capa = blen;
|
||||
RSTRING(dest)->ptr = 0;
|
||||
|
|
Loading…
Reference in a new issue