summaryrefslogtreecommitdiffstats
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
commitac17da0f60d9bd0168128a2af6729ee210c36687 (patch)
treeda88b4389e0df8385407695139d7a4d228381cec /string.c
parent59bd3fda628636815964d9d39f45b941c1a56ade (diff)
downloadruby-ac17da0f60d9bd0168128a2af6729ee210c36687.tar.gz
ruby-ac17da0f60d9bd0168128a2af6729ee210c36687.tar.xz
ruby-ac17da0f60d9bd0168128a2af6729ee210c36687.zip
* 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
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 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;
}
OSZAR »