aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index ad45dbd..61963c1 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -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';