Skip to content

Commit

Permalink
filterx-getattr: fix noop assert
Browse files Browse the repository at this point in the history
Signed-off-by: László Várady <[email protected]>
  • Loading branch information
MrAnno committed Feb 13, 2025
1 parent 686750c commit 11e82c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/filterx/expr-getattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ filterx_getattr_new(FilterXExpr *operand, FilterXObject *attr_name)
self->super.free_fn = _free;
self->operand = operand;

filterx_object_is_type(attr_name, &FILTERX_TYPE_NAME(string));
g_assert(filterx_object_is_type(attr_name, &FILTERX_TYPE_NAME(string)));
self->attr = attr_name;
/* NOTE: name borrows the string value from the string object */
self->super.name = filterx_string_get_value_ref(self->attr, NULL);
return &self->super;
}

FILTERX_EXPR_DEFINE_TYPE(getattr);
FILTERX_EXPR_DEFINE_TYPE(getattr);

0 comments on commit 11e82c3

Please sign in to comment.