diff options
author | jedgar <jedgar@FreeBSD.org> | 2001-12-02 18:15:53 +0000 |
---|---|---|
committer | jedgar <jedgar@FreeBSD.org> | 2001-12-02 18:15:53 +0000 |
commit | c3aedf8ced2dcd6708a9e4ff0c4e4761f7cface3 (patch) | |
tree | 8e0f1f41960d1c77e3fdb8aaa51cfcd421abf3b5 /bin/setfacl/util.c | |
parent | de0f8b15daac8b82159645926c12d3a796ffcef2 (diff) | |
download | FreeBSD-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/util.c')
-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; } |