summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-02-27 08:04:32 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-02-27 08:04:32 +0000
commite5c5576aeb40eb593d02cb00174ae5a8256f19f6 (patch)
treeda88b4389e0df8385407695139d7a4d228381cec /string.c
parent780e1aa291d41e065f799e35e02543206f912b4f (diff)
* string.c (str_new): need no MEMZERO().
* numeric.c (fix_gt): use rb_num_coerce_cmp() instead of rb_num_coerce_bin. * numeric.c (fix_ge, fix_lt, fix_le): ditto. * numeric.c (flo_gt, flo_ge, flo_lt, flo_le): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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;
}