From 8cebc69e710dec12fdef059b50d90f76b638b013 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sun, 25 Jul 2021 07:20:43 +0530 Subject: [PATCH] Fix build break --- src/nnn.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/nnn.c b/src/nnn.c index 5912066a..7156c82d 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -7207,10 +7207,9 @@ nochange: } } - if (nselected == 1 && (sel == SEL_CP || sel == SEL_MV)) - mkpath(path, xbasename(pselbuf), newpath); - else - newpath[0] = '\0'; + (nselected == 1 && (sel == SEL_CP || sel == SEL_MV)) + ? mkpath(path, xbasename(pselbuf), newpath) + : (newpath[0] = '\0'); endselection();