Browse Source

Fix segfault

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

+ 1
- 1
src/nnn.c View File

@@ -3407,7 +3407,7 @@ static bool run_selected_plugin(char **path, const char *file, char *newpath, ch
mkpath(*path, file, newpath);
/* Copy to path so we can return back to earlier dir */
xstrlcpy(*path, rundir, PATH_MAX);
if (runfile[0]) {
if (runfile && runfile[0]) {
xstrlcpy(*lastname, runfile, NAME_MAX);
spawn(newpath, *lastname, *path, *path, F_NORMAL);
runfile[0] = '\0';


Loading…
Cancel
Save