expression: incorrect assert() list_expr_to_binop
Pablo Neira Ayuso
maintainerPATCH 1/1 expression: incorrect assert() list_expr_to_binop
assert() logic is reversed, all expressions in the list are handled, including the first.
src/expression.c:1285: list_expr_to_binop: Assertion `first' failed.
Fixes 53d6bb992445 ("expression: initialize list of expression to silence gcc compile warning")
Reported-by Florian Westphal <[email protected]>
Signed-off-by Pablo Neira Ayuso <[email protected]>
--- src/expression.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/expression.c +1 -1
@@ -1282,7 +1282,7 @@ struct expr *list_expr_to_binop(struct expr *expr) } }/* list with one single item only, this should not happen. */ -assert (first); +assert (!first);/* zap list expressions, they have been moved to binop expression. */ init_list_head (&expr->expressions);
Signature · 1 line
2.30.2