aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-11-20 01:34:07 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-11-20 01:34:07 +0530
commitcc3702b2e129e92eb8082a306ad3a79acc908450 (patch)
tree4a30db49259c81ce7e8a1769820a433282906bed /src
parent3a9def25d815dae7a7db658d2383004417116fb6 (diff)
downloadnnn-cc3702b2e129e92eb8082a306ad3a79acc908450.tar.gz
Fix lint error
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 341a78e..1023e16 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -1363,8 +1363,9 @@ static bool xmkentryp(char* path, bool dir)
DPRINTF_S("open fail");
DPRINTF_S(strerror(errno));
return FALSE;
- } else
- close(fd);
+ }
+
+ close(fd);
}
return TRUE;