]> git.saurik.com Git - apple/libc.git/blobdiff - posix1e/acl_translate.c
Libc-1439.100.3.tar.gz
[apple/libc.git] / posix1e / acl_translate.c
index 2d400f69472a70d3f464b0fd548c4bdb1a7b251d..57cb01f1b1fa410b0ce0207f083c3551a829dc88 100644 (file)
@@ -349,7 +349,7 @@ acl_from_text(const char *buf_p)
         */
        field = strsep(&entry, " ");
        errno = 0;
-       if (!*field || strtol(field, NULL, 0) != 1)
+       if (field == NULL || !*field || strtol(field, NULL, 0) != 1)
        {
            error = EINVAL;
            goto exit;