diff options
Diffstat (limited to 'lib/libc/posix1e/acl_from_text.c')
-rw-r--r-- | lib/libc/posix1e/acl_from_text.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/posix1e/acl_from_text.c b/lib/libc/posix1e/acl_from_text.c index ffceaa9..78a8bd0 100644 --- a/lib/libc/posix1e/acl_from_text.c +++ b/lib/libc/posix1e/acl_from_text.c @@ -123,11 +123,11 @@ acl_from_text(const char *buf_p) /* Local copy we can mess up. */ mybuf_p = strdup(buf_p); - if (!mybuf_p) + if (mybuf_p == NULL) return(NULL); acl = acl_init(3); - if (!acl) { + if (acl == NULL) { free(mybuf_p); return(NULL); } @@ -143,7 +143,7 @@ acl_from_text(const char *buf_p) while ((entry = strsep(¬comment, ","))) { /* Now split into three ':' delimited fields. */ tag = strsep(&entry, ":"); - if (!tag) { + if (tag == NULL) { errno = EINVAL; goto error_label; } @@ -158,7 +158,7 @@ acl_from_text(const char *buf_p) string_trim_trailing_whitespace(tag); qualifier = strsep(&entry, ":"); - if (!qualifier) { + if (qualifier == NULL) { errno = EINVAL; goto error_label; } @@ -166,7 +166,7 @@ acl_from_text(const char *buf_p) string_trim_trailing_whitespace(qualifier); permission = strsep(&entry, ":"); - if ((!permission) || (entry)) { + if (permission == NULL || entry) { errno = EINVAL; goto error_label; } |