diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-27 15:23:16 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-27 15:23:16 +0000 |
| commit | 08206401fd57ce70a64fe588cf0f93cba29d59ff (patch) | |
| tree | a0b99e636f52b1ab109f21e3938dcf410235a615 | |
| parent | cf31e1d8951b1165975c2706137f35f302cab3de (diff) | |
| download | ruby-08206401fd57ce70a64fe588cf0f93cba29d59ff.tar.gz ruby-08206401fd57ce70a64fe588cf0f93cba29d59ff.tar.xz ruby-08206401fd57ce70a64fe588cf0f93cba29d59ff.zip | |
* string.c (str_gsub): use STR_NOCAPA.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2105,7 +2105,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; |
