aboutsummaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/string.c b/string.c
index f567f75bfe..e4308be0f5 100644
--- a/string.c
+++ b/string.c
@@ -70,9 +70,6 @@ str_new(klass, ptr, len)
if (ptr) {
memcpy(RSTRING(str)->ptr, ptr, len);
}
- else {
- MEMZERO(RSTRING(str)->ptr, char, len);
- }
RSTRING(str)->ptr[len] = '\0';
return str;
}