From ac17da0f60d9bd0168128a2af6729ee210c36687 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 27 Feb 2003 08:04:32 +0000 Subject: * 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: http://svn.ruby-lang.org/repos/ruby/trunk@3536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'string.c') diff --git a/string.c b/string.c index f567f75bf..e4308be0f 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; } -- cgit