commit 1338922697f48ab1992d129224bfac83f10bb0a1
parent 2b79d237ccbbff19e226257fef35edfe228623e5
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date: Sun, 20 Jan 2019 21:47:16 +0530
Remove redundant tmp assignment
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/nnn.c b/src/nnn.c
@@ -1527,8 +1527,7 @@ static int xlink(char *suffix, char *path, char *buf, int type)
r = mkpath(path, fname, buf, PATH_MAX);
xstrlcpy(buf + r - 1, suffix, PATH_MAX - r - 1);
- r = link_fn(pbuf, buf);
- if (!r)
+ if (!link_fn(pbuf, buf))
++count;
pos += len + 1;