mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Change scope to always check the correct return value
This commit is contained in:
parent
3c45733f47
commit
0aefc2f496
3
noice.c
3
noice.c
|
@ -748,7 +748,7 @@ moretyping:
|
|||
if (r == 1)
|
||||
nowtyping = 0;
|
||||
/* Check regex errors */
|
||||
if (tmp != NULL)
|
||||
if (tmp != NULL) {
|
||||
r = setfilter(&re, tmp);
|
||||
if (r != 0)
|
||||
if (nowtyping) {
|
||||
|
@ -757,6 +757,7 @@ moretyping:
|
|||
free(tmp);
|
||||
goto nochange;
|
||||
}
|
||||
}
|
||||
/* Copy or reset filter */
|
||||
free(filter);
|
||||
if (tmp != NULL)
|
||||
|
|
Loading…
Reference in a new issue