]> gitweb.michael.orlitzky.com - apply-default-acl.git/blobdiff - src/libadacl.c
src/libadacl.c: kill a pointless "else if" after an "if" that returns.
[apply-default-acl.git] / src / libadacl.c
index e75fdece6a36edd7ece544944ffa920a64970d04..20bb715ea7b5e429911061511f09226bf065e2ce 100644 (file)
@@ -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';