Skip to content

Commit

Permalink
fix crash
Browse files Browse the repository at this point in the history
Signed-off-by: Szilard Parrag <[email protected]>
  • Loading branch information
OverOrion committed Sep 13, 2024
1 parent c1bbc51 commit f68d1eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/filterx/func-str.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit f68d1eb

Please sign in to comment.