aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-07-15 01:08:24 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-07-15 01:08:24 +0530
commit6fb4338ffa795b9aebbcff942c7cdb826c95da42 (patch)
treeeb256f5110bbd3eb0923c9f1077029d326a89489 /src
parente4afd91ec040b2cabcf1035b94c3f95ac5fbe9b4 (diff)
downloadnnn-6fb4338ffa795b9aebbcff942c7cdb826c95da42.tar.gz
Remove redundant initialization
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index acfefd2..b4dc9ff 100644
--- 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";