From 2fbb6ae35f73768b1533d565fe63023671871daf Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sun, 2 Aug 2020 23:58:52 +0530 Subject: [PATCH] Minor reformat --- src/nnn.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/nnn.c b/src/nnn.c index 336c0c19..e4693897 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -7026,11 +7026,8 @@ static bool setup_config(void) /* Set selection file path */ if (!g_state.picker) { char *env_sel = xgetenv(env_cfg[NNN_SEL], NULL); - if (env_sel) - selpath = xstrdup(env_sel); - else - /* Length of "/.config/nnn/.selection" */ - selpath = (char *)malloc(len + 3); + selpath = env_sel ? xstrdup(env_sel) + : (char *)malloc(len + 3); /* Length of "/.config/nnn/.selection" */ if (!selpath) { xerror();