From: Michael Orlitzky Date: Thu, 1 Mar 2018 23:20:09 +0000 (-0500) Subject: src/libadacl.c: remove redundant empty pathname checks from safe_open(). X-Git-Tag: v0.2.0~12 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=b13aa67306336a89d9947735622c547c13acffb6;p=apply-default-acl.git src/libadacl.c: remove redundant empty pathname checks from safe_open(). --- 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;