]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix open with
authorArun Prakash Jana <engineerarun@gmail.com>
Wed, 26 Dec 2018 18:56:56 +0000 (00:26 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Wed, 26 Dec 2018 18:56:56 +0000 (00:26 +0530)
src/nnn.c

index 55ee96220c287d11fce15582af6fc28a97b9b98c..400ecc9926acf641b02d7e2ea13a9f893ccc99e1 100644 (file)
--- 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);