aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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;