aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-05-16 15:31:34 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-05-16 15:31:34 +0530
commit74b95eb9bdbacf750b229a373cae2019ee7b249e (patch)
treeecb5cc0d82e466e0943758ca4cd43c51aa53aa86
parent0f01bd7d3a72eabcb25af4f77ee2e90017ff82f8 (diff)
downloadnnn-74b95eb9bdbacf750b229a373cae2019ee7b249e.tar.gz
Fix #575
-rw-r--r--src/nnn.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 1f46ac7..46b43bc 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -691,7 +691,6 @@ static int dentfind(const char *fname, int n);
static void move_cursor(int target, int ignore_scrolloff);
static inline bool getutil(char *util);
static size_t mkpath(const char *dir, const char *name, char *out);
-static char *xgetenv(const char *name, char *fallback);
static bool plugscript(const char *plugin, uchar flags);
static char *load_input(int fd, const char *path);
@@ -7120,7 +7119,7 @@ int main(int argc, char *argv[])
#ifndef NOFIFO
/* Create fifo */
- fifopath = getenv("NNN_FIFO");
+ fifopath = xgetenv("NNN_FIFO", NULL);
if (fifopath) {
if (mkfifo(fifopath, 0600) != 0 && !(errno == EEXIST && access(fifopath, W_OK) == 0)) {
xerror();