diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | string.c | 5 |
2 files changed, 4 insertions, 5 deletions
@@ -1,3 +1,7 @@ +Thu Jul 18 14:37:57 2013 Koichi Sasada <ko1@atdot.net> + + * string.c (str_alloc): no need to clear RString (already cleared). + Thu Jul 18 12:57:47 2013 Tanaka Akira <akr@fsij.org> * bignum.c (BDIGITS_ZERO): Defined. @@ -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; } |