Skip to content

Commit

Permalink
Fix segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Nov 11, 2019
1 parent 6ea6428 commit fa4c37f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nnn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit fa4c37f

Please sign in to comment.