diff --git a/lib/filterx/func-str.c b/lib/filterx/func-str.c index 765cb235ba..8d61c4f3f7 100644 --- a/lib/filterx/func-str.c +++ b/lib/filterx/func-str.c @@ -73,7 +73,7 @@ _filterx_expr_affix_get_nth_needle(FilterXExprAffix *self, guint64 index, const if (filterx_object_is_type(self->_needle_obj, &FILTERX_TYPE_NAME(string)) && !filterx_object_extract_string(self->_needle_obj, &self->needle_str.borrowed_str_value, &self->needle_str_len)) goto error; - *needle_str = (const gchar *) self->needle_str.owned_str_value; + *needle_str = (const gchar *) self->needle_str.borrowed_str_value; *needle_str_len = (gssize) MIN(self->needle_str_len, G_MAXSSIZE); if(self->ignore_case) {