aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-12-27 00:26:56 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-12-27 00:26:56 +0530
commit6973ed37a7f407850c492b53a66dbf34a502b75a (patch)
tree9638415a453f751dccb694fd521cdc5e08432bdf /src
parent4b717b1920e160f6a00448ea55ae72e8c5ecfeda (diff)
downloadnnn-6973ed37a7f407850c492b53a66dbf34a502b75a.tar.gz
Fix open with
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 55ee962..400ecc9 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -3269,6 +3269,7 @@ nochange:
spawn(utils[APACK], tmp, dents[cur].name, path, F_NORMAL);
break;
case SEL_OPENWITH:
+ dir = NULL;
getprogarg(tmp, &dir); /* dir used as tmp var */
mkpath(path, dents[cur].name, newpath, PATH_MAX);
spawn(tmp, dir, newpath, path, r);