diff options
-rw-r--r-- | bin/setfacl/util.c | 3 |
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; } |