mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 13:51:31 +00:00
Fix segfault when a non-matching filter is applied twice
This commit is contained in:
parent
892c7c850a
commit
9679e132d4
3
noice.c
3
noice.c
|
@ -678,7 +678,8 @@ nochange:
|
||||||
filter_re = re;
|
filter_re = re;
|
||||||
DPRINTF_S(filter);
|
DPRINTF_S(filter);
|
||||||
/* Save current */
|
/* Save current */
|
||||||
oldpath = makepath(path, dents[cur].name);
|
if (n > 0)
|
||||||
|
oldpath = makepath(path, dents[cur].name);
|
||||||
goto out;
|
goto out;
|
||||||
case SEL_NEXT:
|
case SEL_NEXT:
|
||||||
if (cur < n - 1)
|
if (cur < n - 1)
|
||||||
|
|
Loading…
Reference in a new issue