summaryrefslogtreecommitdiffstats
path: root/bin/setfacl
diff options
context:
space:
mode:
authorjedgar <jedgar@FreeBSD.org>2001-12-02 01:52:34 +0000
committerjedgar <jedgar@FreeBSD.org>2001-12-02 01:52:34 +0000
commitf1ae0d570ce0554a7fd92b6a47cfc37137eb11a7 (patch)
tree879a9bfd9e43fb2e9f80faae4623ac7ecf7c943c /bin/setfacl
parent4aa5e7d2a3f7936676d1e66ae76d51c49ecec8da (diff)
downloadFreeBSD-src-f1ae0d570ce0554a7fd92b6a47cfc37137eb11a7.zip
FreeBSD-src-f1ae0d570ce0554a7fd92b6a47cfc37137eb11a7.tar.gz
Use calloc(3) instead of rolling our own.
Diffstat (limited to 'bin/setfacl')
-rw-r--r--bin/setfacl/util.c3
1 files changed, 1 insertions, 2 deletions
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;
}
OpenPOWER on IntegriCloud