aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-02-18 22:44:11 -0600
committerRob Landley <rob@landley.net>2012-02-18 22:44:11 -0600
commit2b54b1ab1a796ef89426f021319c11ff22710947 (patch)
tree722e6b9c9360965a65e932591fda3478cea290f9 /lib/lib.c
parent4696bfc4057e87ea8a66bd64aafb9ca14a64290e (diff)
downloadtoybox-2b54b1ab1a796ef89426f021319c11ff22710947.tar.gz
Nathan McSween convinced me compilers that inline memset() can optimize the bzero case pretty well.
Diffstat (limited to 'lib/lib.c')
-rw-r--r--lib/lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lib.c b/lib/lib.c
index 2c4361a8..ba6d132d 100644
--- a/lib/lib.c
+++ b/lib/lib.c
@@ -91,7 +91,7 @@ void *xmalloc(size_t size)
void *xzalloc(size_t size)
{
void *ret = xmalloc(size);
- bzero(ret, size);
+ memset(ret, 0, size);
return ret;
}