diff options
author | lostd <lostd@2f30.org> | 2015-01-28 12:47:11 +0200 |
---|---|---|
committer | lostd <lostd@2f30.org> | 2015-01-28 12:47:11 +0200 |
commit | 0aefc2f4962a89b7a7731583862416871afeacd7 (patch) | |
tree | a9a41fb9dc1b015f4bd275ce3f3bd0d73403a6bc /noice.c | |
parent | 3c45733f470bebf036289348d7c2fae7b02b14eb (diff) | |
download | nnn-0aefc2f4962a89b7a7731583862416871afeacd7.tar.gz |
Change scope to always check the correct return value
Diffstat (limited to 'noice.c')
-rw-r--r-- | noice.c | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -748,15 +748,16 @@ moretyping: if (r == 1) nowtyping = 0; /* Check regex errors */ - if (tmp != NULL) + if (tmp != NULL) { r = setfilter(&re, tmp); - if (r != 0) - if (nowtyping) { - goto moretyping; - } else { - free(tmp); - goto nochange; - } + if (r != 0) + if (nowtyping) { + goto moretyping; + } else { + free(tmp); + goto nochange; + } + } /* Copy or reset filter */ free(filter); if (tmp != NULL) |