diff options
Diffstat (limited to 'lib/libc/posix1e/acl_init.c')
-rw-r--r-- | lib/libc/posix1e/acl_init.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/posix1e/acl_init.c b/lib/libc/posix1e/acl_init.c index da36156..08b7448 100644 --- a/lib/libc/posix1e/acl_init.c +++ b/lib/libc/posix1e/acl_init.c @@ -65,11 +65,11 @@ acl_dup(acl_t acl) acl_t acl_new; acl_new = acl_init(ACL_MAX_ENTRIES); - if (!acl_new) - return NULL; - *acl_new = *acl; - acl->ats_cur_entry = 0; - acl_new->ats_cur_entry = 0; + if (acl_new != NULL) { + *acl_new = *acl; + acl->ats_cur_entry = 0; + acl_new->ats_cur_entry = 0; + } - return(acl_new); + return (acl_new); } |