From 15479e66d20dda2ddd670159c5ef005320f2398c Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 13 Aug 2025 15:14:48 +0200 Subject: src: replace compound_expr_add() by type safe concat_expr_add() Replace compound_expr_add by concat_expr_add() to validate type. Signed-off-by: Pablo Neira Ayuso --- src/parser_json.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/parser_json.c') diff --git a/src/parser_json.c b/src/parser_json.c index cd6744f9..6ed1841c 100644 --- a/src/parser_json.c +++ b/src/parser_json.c @@ -1347,10 +1347,10 @@ static struct expr *json_parse_concat_expr(struct json_ctx *ctx, struct expr *concat; concat = concat_expr_alloc(int_loc); - compound_expr_add(concat, expr); + concat_expr_add(concat, expr); expr = concat; } - compound_expr_add(expr, tmp); + concat_expr_add(expr, tmp); } return expr ? json_check_concat_expr(ctx, expr) : NULL; } @@ -1824,7 +1824,7 @@ static struct expr *json_parse_dtype_expr(struct json_ctx *ctx, json_t *root) expr_free(expr); return NULL; } - compound_expr_add(expr, i); + concat_expr_add(expr, i); } return json_check_concat_expr(ctx, expr); -- cgit v1.2.3