diff options
Diffstat (limited to 'lib/libposix1e/acl_from_text.c')
-rw-r--r-- | lib/libposix1e/acl_from_text.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/libposix1e/acl_from_text.c b/lib/libposix1e/acl_from_text.c index 72e2f96..d4d9986 100644 --- a/lib/libposix1e/acl_from_text.c +++ b/lib/libposix1e/acl_from_text.c @@ -117,15 +117,12 @@ acl_from_text(const char *buf_p) /* Local copy we can mess up. */ mybuf_p = strdup(buf_p); - if (!mybuf_p) { - errno = ENOMEM; + if (!mybuf_p) return(0); - } acl = acl_init(3); if (!acl) { free(mybuf_p); - errno = ENOMEM; return(0); } |