nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 19b2ea324aa5260d27507cb9be77c72a07e4afb8
parent 03fc3b99c52e8fc67485f3eb357629ec0025e820
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Sat, 11 Jun 2022 21:32:16 +0530

Skip redundant getutil() call

Diffstat:
Msrc/nnn.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -4643,10 +4643,10 @@ static bool handle_archive(char *fpath /* in-out param */, char op) char *util, *outdir = NULL; bool x_to = FALSE; bool is_bsdtar = getutil(utils[UTIL_BSDTAR]); - bool is_atool = getutil(utils[UTIL_ATOOL]); + bool is_atool = !is_bsdtar && getutil(utils[UTIL_ATOOL]); if (op == 'x') { - outdir = xreadline((!is_bsdtar && is_atool) ? "." : xbasename(fpath), messages[MSG_NEW_PATH]); + outdir = xreadline(is_atool ? "." : xbasename(fpath), messages[MSG_NEW_PATH]); if (!outdir || !*outdir) { /* Cancelled */ printwait(messages[MSG_CANCEL], NULL); return FALSE;