aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/regexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/regexp.c')
-rw-r--r--src/plugins/regexp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/regexp.c b/src/plugins/regexp.c
index 8c3a9d354..461888abf 100644
--- a/src/plugins/regexp.c
+++ b/src/plugins/regexp.c
@@ -276,6 +276,7 @@ optimize_regexp_expression (struct expression **e, GQueue *stack, gboolean res)
/* If this operation is just ! just inverse res and check for further operators */
if (it->content.operation == '!') {
res = !res;
+ it = it->next;
continue;
}
else if (it->content.operation == '&' && res == FALSE) {