From 4fabf1184087e7d50d8f5a466ab10d74d006a02d Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 27 Oct 2004 15:23:16 +0000 Subject: * string.c (str_gsub): use STR_NOCAPA. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'string.c') diff --git a/string.c b/string.c index aff7abe9b7..cc31d1f606 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; -- cgit v1.2.3