diff options
-rw-r--r-- | noice.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -749,8 +749,13 @@ moretyping: /* Check regex errors */ if (tmp != NULL) r = setfilter(&re, tmp); - if (r != 0 && nowtyping) - goto moretyping; + if (r != 0) + if (nowtyping) { + goto moretyping; + } else { + free(tmp); + goto nochange; + } /* Copy or reset filter */ free(filter); if (tmp != NULL) |