From 5d1ca249f90c21e3c379337dd8c6473d56fc1905 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sat, 8 Dec 2018 16:45:31 +0530 Subject: [PATCH] Simplify show details --- src/nnn.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/nnn.c b/src/nnn.c index 9cc1fc46..79dfc632 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -2923,13 +2923,7 @@ nochange: break; mkpath(path, dents[cur].name, newpath, PATH_MAX); - - if (lstat(newpath, &sb) == -1) { - dentfree(dents); - errexit(); - } - - if (!show_stats(newpath, dents[cur].name, &sb)) { + if (lstat(newpath, &sb) == -1 || !show_stats(newpath, dents[cur].name, &sb)) { printwarn(); goto nochange; }