diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/setfacl/util.c | 5 |
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; } |