projects
/
nnn.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d135af3
)
Retire redundant variable
author
Arun Prakash Jana <engineerarun@gmail.com>
Tue, 19 Dec 2017 19:12:11 +0000 (
00:42
+0530)
committer
Arun Prakash Jana <engineerarun@gmail.com>
Tue, 19 Dec 2017 19:12:11 +0000 (
00:42
+0530)
nnn.c
patch
|
blob
|
history
diff --git
a/nnn.c
b/nnn.c
index b2f5da3fceeed7819e1a33140eb37e7b5d9a0f0b..a74f4eec645cbea251a61f4a39edb51eb58d8e0e 100644
(file)
--- a/
nnn.c
+++ b/
nnn.c
@@
-917,10
+917,7
@@
filterentries(char *path)
static char ln[REGEX_MAX];
static wchar_t wln[REGEX_MAX];
static wint_t ch[2] = {0};
- static int maxlen = REGEX_MAX - 1;
- int r, total = ndents;
- int oldcur = cur;
- int len = 1;
+ int r, total = ndents, oldcur = cur, len = 1;
char *pln = ln + 1;
ln[0] = wln[0] = FILTER;
@@
-976,7
+973,7
@@
filterentries(char *path)
if (len == 1)
cur = 0;
- if (len ==
maxlen
)
+ if (len ==
REGEX_MAX - 1
)
break;
wln[len] = (wchar_t)*ch;