Browse Source

Minor reformat

master
Arun Prakash Jana 4 years ago
parent
commit
2fbb6ae35f
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 2 additions and 5 deletions
  1. +2
    -5
      src/nnn.c

+ 2
- 5
src/nnn.c View File

@@ -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();


Loading…
Cancel
Save