diff options
author | rwatson <rwatson@FreeBSD.org> | 2001-01-09 05:42:31 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2001-01-09 05:42:31 +0000 |
commit | a80aac3d997b53c0312b44faad038b2b9eed16f4 (patch) | |
tree | ccee1744482ae85e37c7701a0525de4f239dd382 /lib/libc/posix1e/acl_init.c | |
parent | 77af9a1a6454856b9023e35400f1eeeb56bc7efc (diff) | |
download | FreeBSD-src-a80aac3d997b53c0312b44faad038b2b9eed16f4.zip FreeBSD-src-a80aac3d997b53c0312b44faad038b2b9eed16f4.tar.gz |
o bzero() the ACL structure only if malloc() returns non-NULL.
Submitted by: jedgar
Diffstat (limited to 'lib/libc/posix1e/acl_init.c')
-rw-r--r-- | lib/libc/posix1e/acl_init.c | 3 |
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); } |