aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-01-20 21:47:16 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-01-20 21:47:16 +0530
commit1338922697f48ab1992d129224bfac83f10bb0a1 (patch)
treea145b2a6b281908cf3d228fab126688100eb1cc1 /src
parent2b79d237ccbbff19e226257fef35edfe228623e5 (diff)
downloadnnn-1338922697f48ab1992d129224bfac83f10bb0a1.tar.gz
Remove redundant tmp assignment
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 24d7df0..d2a29ef 100644
--- 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;