]> Sergey Matveev's repositories - nnn.git/commitdiff
Minor reformat
authorArun Prakash Jana <engineerarun@gmail.com>
Sun, 2 Aug 2020 18:28:52 +0000 (23:58 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sun, 2 Aug 2020 18:28:52 +0000 (23:58 +0530)
src/nnn.c

index 336c0c195e31649d5920310616b36385b57431db..e4693897793a47408cf496669cf6f452cf921ad9 100644 (file)
--- 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();