summaryrefslogtreecommitdiffstats
path: root/bin/setfacl
diff options
context:
space:
mode:
authorjedgar <jedgar@FreeBSD.org>2001-12-02 18:15:53 +0000
committerjedgar <jedgar@FreeBSD.org>2001-12-02 18:15:53 +0000
commitc3aedf8ced2dcd6708a9e4ff0c4e4761f7cface3 (patch)
tree8e0f1f41960d1c77e3fdb8aaa51cfcd421abf3b5 /bin/setfacl
parentde0f8b15daac8b82159645926c12d3a796ffcef2 (diff)
downloadFreeBSD-src-c3aedf8ced2dcd6708a9e4ff0c4e4761f7cface3.zip
FreeBSD-src-c3aedf8ced2dcd6708a9e4ff0c4e4761f7cface3.tar.gz
o Correct error message forgotten in the last commit (malloc() -> calloc())
o Fix style nits Submitted by: bde
Diffstat (limited to 'bin/setfacl')
-rw-r--r--bin/setfacl/util.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/setfacl/util.c b/bin/setfacl/util.c
index 3906146..f4fef77 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;
}
OpenPOWER on IntegriCloud