From b13aa67306336a89d9947735622c547c13acffb6 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Thu, 1 Mar 2018 18:20:09 -0500 Subject: [PATCH] src/libadacl.c: remove redundant empty pathname checks from safe_open(). --- src/libadacl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libadacl.c b/src/libadacl.c index 20bb715..30a39f2 100644 --- a/src/libadacl.c +++ b/src/libadacl.c @@ -127,7 +127,7 @@ int safe_open_ex(int at_fd, char* pathname, int flags) { * and @c OPEN_ERROR if not. */ int safe_open(const char* pathname, int flags) { - if (pathname == NULL || strlen(pathname) == 0 || pathname[0] == '\0') { + if (pathname == NULL) { errno = EINVAL; perror("safe_open (args)"); return OPEN_ERROR; -- 2.44.2