summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-18 05:39:30 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-18 05:39:30 +0000
commit7497452930b067b1dcdcc204bf9a6f34cd3d5d18 (patch)
tree39f2129fd933bd64b1597b0fc66b3e0e9bf8a1c6 /string.c
parent80afc9b2f38ef566ca3d46da4bb6876f788c50e4 (diff)
* string.c (str_alloc): no need to clear RString (already cleared).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/string.c b/string.c
index 2e1147adb3..05a97b47e7 100644
--- a/string.c
+++ b/string.c
@@ -382,11 +382,6 @@ static inline VALUE
str_alloc(VALUE klass)
{
NEWOBJ_OF(str, struct RString, klass, T_STRING | (RGENGC_WB_PROTECTED_STRING ? FL_WB_PROTECTED : 0));
-
- str->as.heap.ptr = 0;
- str->as.heap.len = 0;
- str->as.heap.aux.capa = 0;
-
return (VALUE)str;
}