From 79e2bcd9faf014cfd58bdca0a000ed68d15fa1ef Mon Sep 17 00:00:00 2001 From: Balazs Scheidler Date: Thu, 26 Dec 2024 21:31:14 +0100 Subject: [PATCH] filterx/unset-empties: call the virtual init function of object_expr We incorrectly called filterx_expr_init_method() directly instead of going through the virtual function pointer. Signed-off-by: Balazs Scheidler --- lib/filterx/func-unset-empties.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/filterx/func-unset-empties.c b/lib/filterx/func-unset-empties.c index 9ac534d60..19e6df346 100644 --- a/lib/filterx/func-unset-empties.c +++ b/lib/filterx/func-unset-empties.c @@ -253,7 +253,7 @@ _init(FilterXExpr *s, GlobalConfig *cfg) { FilterXFunctionUnsetEmpties *self = (FilterXFunctionUnsetEmpties *) s; - if (!filterx_expr_init_method(self->object_expr, cfg)) + if (!filterx_expr_init(self->object_expr, cfg)) return FALSE; return filterx_function_init_method(&self->super, cfg);