From: Michael Orlitzky Date: Thu, 1 Mar 2018 23:19:24 +0000 (-0500) Subject: src/libadacl.c: kill a pointless "else if" after an "if" that returns. X-Git-Tag: v0.2.0~13 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=eb1715a253bcbf3a6ae51403b34cd6a20b894ec1;p=apply-default-acl.git src/libadacl.c: kill a pointless "else if" after an "if" that returns. --- diff --git a/src/libadacl.c b/src/libadacl.c index e75fdec..20bb715 100644 --- a/src/libadacl.c +++ b/src/libadacl.c @@ -69,7 +69,7 @@ int safe_open_ex(int at_fd, char* pathname, int flags) { /* No more slashes, this is the base case. */ return openat(at_fd, pathname, flags); } - else if (firstslash[1] == '\0') { + if (firstslash[1] == '\0') { /* The first slash is the last character; ensure that we open a directory. */ firstslash[0] = '\0';