Skip to content

Commit

Permalink
filterx/unset-empties: call the virtual init function of object_expr
Browse files Browse the repository at this point in the history
We incorrectly called filterx_expr_init_method() directly instead of
going through the virtual function pointer.

Signed-off-by: Balazs Scheidler <[email protected]>
  • Loading branch information
bazsi committed Dec 28, 2024
1 parent 7c7ef1f commit 79e2bcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/filterx/func-unset-empties.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 79e2bcd

Please sign in to comment.