diff options
author | 2020-08-02 23:58:52 +0530 | |
---|---|---|
committer | 2020-08-02 23:58:52 +0530 | |
commit | 2fbb6ae35f73768b1533d565fe63023671871daf (patch) | |
tree | ad9f52f93b659d209d13f5826e6cff0cc109e992 /src | |
parent | b3f2e471737345e0bead3d44da05e59eada6db01 (diff) | |
download | nnn-2fbb6ae35f73768b1533d565fe63023671871daf.tar.gz |
Minor reformat
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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(); |