From f1ae0d570ce0554a7fd92b6a47cfc37137eb11a7 Mon Sep 17 00:00:00 2001 From: jedgar Date: Sun, 2 Dec 2001 01:52:34 +0000 Subject: Use calloc(3) instead of rolling our own. --- bin/setfacl/util.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/setfacl/util.c b/bin/setfacl/util.c index 2514421..3906146 100644 --- a/bin/setfacl/util.c +++ b/bin/setfacl/util.c @@ -38,10 +38,9 @@ zmalloc(size_t size) { void *ptr; - ptr = malloc(size); + ptr = calloc(1, size); if (!ptr) err(EX_OSERR, "malloc() failed"); - bzero(ptr, size); return ptr; } -- cgit v1.1