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