From d0b8d0fdfc8ba4e214cda2b7d4c5598aad3d1f6c Mon Sep 17 00:00:00 2001 From: "Chris D. Faulhaber" 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/setfacl') diff --git a/bin/setfacl/util.c b/bin/setfacl/util.c index 25144213dfe99..39061463129a7 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.3