diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2019-06-01 07:33:11 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2019-06-02 21:37:52 +0530 |
commit | 35fc77027ae4f4f0775994f39c2b528f252fca2b (patch) | |
tree | 56ff9f9bb8d86782bca8cb0dae6210bbb379e75f /src | |
parent | 650f92bf346d9183da47f79e33ec331cb0150386 (diff) | |
download | nnn-35fc77027ae4f4f0775994f39c2b528f252fca2b.tar.gz |
Fix #274
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -1878,8 +1878,6 @@ END: */ static char *getreadline(char *prompt, char *path, char *curpath, int *presel) { - char *input; - /* Switch to current path for readline(3) */ if (chdir(path) == -1) { printwarn(presel); @@ -1888,7 +1886,7 @@ static char *getreadline(char *prompt, char *path, char *curpath, int *presel) exitcurses(); - input = readline(prompt); + char *input = readline(prompt); refresh(); @@ -4155,7 +4153,7 @@ nochange: goto nochange; } #endif - if (tmp[0]) + if (tmp && tmp[0]) // NOLINT spawn(shell, "-c", tmp, path, F_CLI); } |