Skip to content

Commit

Permalink
filterx: fix potential uninitialized variable usage
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 19, 2025
1 parent bc8018e commit 16e58b1
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 @@ -402,7 +402,7 @@ _handle_target_object(FilterXFunctionUnsetEmpties *self, FilterXObject *target,
}
else if (filterx_object_is_type(target, &FILTERX_TYPE_NAME(string)))
{
gsize len;
gsize len = 0;
const gchar *str = filterx_string_get_value_ref(target, &len);
if (len == 0)
{
Expand Down

0 comments on commit 16e58b1

Please sign in to comment.