summaryrefslogtreecommitdiffstats
path: root/lib/libc/posix1e/acl_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/posix1e/acl_init.c')
-rw-r--r--lib/libc/posix1e/acl_init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/posix1e/acl_init.c b/lib/libc/posix1e/acl_init.c
index c2fa43b..cf7d908 100644
--- a/lib/libc/posix1e/acl_init.c
+++ b/lib/libc/posix1e/acl_init.c
@@ -47,7 +47,8 @@ acl_init(int count)
}
acl = (struct acl *) malloc(sizeof(struct acl));
- bzero(acl, sizeof(struct acl));
+ if (acl != NULL)
+ bzero(acl, sizeof(struct acl));
return (acl);
}
OpenPOWER on IntegriCloud