From 405c5615184962c96f337e73b3516cd367b7ae7a Mon Sep 17 00:00:00 2001 From: "Chris D. Faulhaber" Date: Sun, 2 Dec 2001 18:15:53 +0000 Subject: [PATCH] o Correct error message forgotten in the last commit (malloc() -> calloc()) o Fix style nits Submitted by: bde --- bin/setfacl/util.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/setfacl/util.c b/bin/setfacl/util.c index 39061463129..f4fef77adb4 100644 --- a/bin/setfacl/util.c +++ b/bin/setfacl/util.c @@ -39,8 +39,7 @@ zmalloc(size_t size) void *ptr; ptr = calloc(1, size); - if (!ptr) - err(EX_OSERR, "malloc() failed"); - + if (ptr == NULL) + err(EX_OSERR, "calloc() failed"); return ptr; }