summaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-10-15 08:52:18 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-10-15 08:52:18 +0000
commit3e2b0212adc9bba31ad790000902cdb649a398f0 (patch)
tree326561008f8512e3560810077a2505da6aa6d082 /string.c
parent54fe42cc45a9fbdba7dfc1a97f5baa0dcef9a863 (diff)
downloadruby-3e2b0212adc9bba31ad790000902cdb649a398f0.tar.gz
ruby-3e2b0212adc9bba31ad790000902cdb649a398f0.tar.xz
ruby-3e2b0212adc9bba31ad790000902cdb649a398f0.zip
-r debug, -s, etc.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/string.c b/string.c
index f7366cf99..4a4532cb4 100644
--- a/string.c
+++ b/string.c
@@ -112,9 +112,10 @@ rb_str_new4(orig)
str->ptr = RSTRING(orig)->ptr;
RSTRING(orig)->orig = (VALUE)str;
str->orig = 0;
- if (FL_TEST(str, FL_TAINT)) {
+ if (FL_TEST(orig, FL_TAINT)) {
FL_SET(str, FL_TAINT);
}
+ FL_SET(str, STR_FREEZE);
return (VALUE)str;
}
}