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