mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Fix segfault
This commit is contained in:
parent
6ea64288bc
commit
fa4c37f230
|
@ -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…
Reference in a new issue