summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-27 15:23:16 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-27 15:23:16 +0000
commitd40d216a4d26951c40606769ada4208ca77217e7 (patch)
treeb0b3923b907d4497e7c3a8b241de25375fd80a3c
parentc9c08718394a5c2de1ae2108c51df431b59095b9 (diff)
downloadruby-d40d216a4d26951c40606769ada4208ca77217e7.tar.gz
ruby-d40d216a4d26951c40606769ada4208ca77217e7.tar.xz
ruby-d40d216a4d26951c40606769ada4208ca77217e7.zip
* string.c (str_gsub): use STR_NOCAPA.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index aff7abe9b..cc31d1f60 100644
--- a/string.c
+++ b/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;