Skip to content

Commit

Permalink
Merge pull request #159 from alltilla/filterx-vars-unset-fix
Browse files Browse the repository at this point in the history
filterx: fix iterating on unset values in scope
  • Loading branch information
alltilla authored Jun 17, 2024
2 parents 1a3c959 + d9451f8 commit 88923c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/filterx/filterx-scope.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ filterx_scope_foreach_variable(FilterXScope *self, FilterXScopeForeachFunc func,
{
FilterXVariable *variable = &g_array_index(self->variables, FilterXVariable, i);

if (!variable->value)
continue;

if (filterx_variable_handle_is_floating(variable->handle) &&
!variable->declared && variable->generation != self->generation)
continue;
Expand Down

0 comments on commit 88923c0

Please sign in to comment.