diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2020-05-16 15:31:34 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2020-05-16 15:31:34 +0530 |
commit | 74b95eb9bdbacf750b229a373cae2019ee7b249e (patch) | |
tree | ecb5cc0d82e466e0943758ca4cd43c51aa53aa86 | |
parent | 0f01bd7d3a72eabcb25af4f77ee2e90017ff82f8 (diff) | |
download | nnn-74b95eb9bdbacf750b229a373cae2019ee7b249e.tar.gz |
Fix #575
-rw-r--r-- | src/nnn.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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(); |