]> Sergey Matveev's repositories - nnn.git/commitdiff
Remove redundant tmp assignment
authorArun Prakash Jana <engineerarun@gmail.com>
Sun, 20 Jan 2019 16:17:16 +0000 (21:47 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sun, 20 Jan 2019 16:17:16 +0000 (21:47 +0530)
src/nnn.c

index 24d7df04198f8360ae079c72419c5288607d0507..d2a29ef48fa7b7db0601adcd0e1d5df7ba507807 100644 (file)
--- 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;