diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2020-05-20 18:46:12 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2020-05-20 18:46:12 +0530 |
commit | 9e41c39138325f1545fa674d294de29660a6105c (patch) | |
tree | b53aec5b8df8c9c02981f73cff1ebbf97cbeef50 /src | |
parent | c6c1514c6b7b079275a92d04e8e3ad705b1a2ed0 (diff) | |
download | nnn-9e41c39138325f1545fa674d294de29660a6105c.tar.gz |
Fix #582
Diffstat (limited to 'src')
-rw-r--r-- | src/nnn.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -4731,17 +4731,15 @@ static void notify_fifo() } } - static char *name = NULL; - static time_t t = {0}; + static struct entry lastentry = {0}; - if (dents[cur].name == name && dents[cur].t == t) + if (!memcmp(&lastentry, &dents[cur], sizeof(struct entry))) return; - name = dents[cur].name; - t = dents[cur].t; + lastentry = dents[cur]; char path[PATH_MAX]; - size_t len = mkpath(g_ctx[cfg.curctx].c_path, ndents ? name : "", path); + size_t len = mkpath(g_ctx[cfg.curctx].c_path, ndents ? dents[cur].name : "", path); path[len - 1] = '\n'; |