From: Arun Prakash Jana Date: Wed, 26 Dec 2018 18:56:56 +0000 (+0530) Subject: Fix open with X-Git-Tag: v2.2~3 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=6973ed37a7f407850c492b53a66dbf34a502b75a;p=nnn.git Fix open with --- diff --git a/src/nnn.c b/src/nnn.c index 55ee9622..400ecc99 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);