diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2019-11-11 21:43:56 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2019-11-11 21:43:56 +0530 |
commit | fa4c37f2304e304d53eeabe23713fea082839915 (patch) | |
tree | 8b168f2f9bd88d4a06c9f6f43534c3afa293d651 /src | |
parent | 6ea64288bc7199fa037f9fbcb9bf748743942f3d (diff) | |
download | nnn-fa4c37f2304e304d53eeabe23713fea082839915.tar.gz |
Fix segfault
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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'; |