Do recursive call using left expression in the binop expression tree to search for the primary expression. Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> --- src/optimize.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/optimize.c b/src/optimize.c index 2063761a503a..54dde948876f 100644 --- a/src/optimize.c +++ b/src/optimize.c @@ -99,6 +99,8 @@ static bool __expr_cmp(const struct expr *expr_a, const struct expr *expr_b) if (expr_a->fib.result != expr_b->fib.result) return false; break; + case EXPR_BINOP: + return __expr_cmp(expr_a->left, expr_b->left); default: return false; } -- 2.30.2