aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorChris D. Faulhaber <jedgar@FreeBSD.org>2001-12-02 18:15:53 +0000
committerChris D. Faulhaber <jedgar@FreeBSD.org>2001-12-02 18:15:53 +0000
commit405c5615184962c96f337e73b3516cd367b7ae7a (patch)
tree8e0f1f41960d1c77e3fdb8aaa51cfcd421abf3b5 /bin
parent4f5a4612d3555a0741db1d8359d77f9fbd703776 (diff)
downloadsrc-405c5615184962c96f337e73b3516cd367b7ae7a.tar.gz
src-405c5615184962c96f337e73b3516cd367b7ae7a.zip
o Correct error message forgotten in the last commit (malloc() -> calloc())
o Fix style nits Submitted by: bde
Notes
Notes: svn path=/head/; revision=87224
Diffstat (limited to 'bin')
-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 39061463129a..f4fef77adb47 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;
}