Skip to content

Commit

Permalink
implements fixes from jruizgit#386
Browse files Browse the repository at this point in the history
  • Loading branch information
mmclarnon committed Feb 18, 2022
1 parent 72070f4 commit 81f2817
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rules/events.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,10 +609,10 @@ static unsigned int reduceExpressionSequence(ruleset *tree,
}


if ((operator == OP_AND && !targetProperty->value.b) ||
(operator == OP_OR && targetProperty->value.b)) {
while (currentExpression->operator != OP_END) {
++*i;
if ((((operator == OP_AND) && !targetProperty->value.b) ||
((operator == OP_OR) && targetProperty->value.b))
&& (*i < exprs->length)) {
while ((currentExpression->operator != OP_END) && (++*i < exprs->length)) {
currentExpression = &exprs->expressions[*i];
}
return RULES_OK;
Expand Down

0 comments on commit 81f2817

Please sign in to comment.