]> Sergey Matveev's repositories - nnn.git/commitdiff
Remove redundant initialization
authorArun Prakash Jana <engineerarun@gmail.com>
Sun, 14 Jul 2019 19:38:24 +0000 (01:08 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sun, 14 Jul 2019 19:38:24 +0000 (01:08 +0530)
src/nnn.c

index acfefd264b2aca8a491c99dcbaa2e1207b2d5430..b4dc9ffb540b2328ac7e88408c92734f821c0470 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -1168,7 +1168,7 @@ static void xrm(char *path)
 
 static bool batch_rename(const char *path)
 {
-       int fd1 = -1, fd2 = -1, i;
+       int fd1, fd2, i;
        uint count = 0, lines = 0;
        bool dir = FALSE, ret = FALSE;
        const char renamecmd[] = "paste -d'\n' %s %s | xargs -d'\n' -n2 mv 2>/dev/null";