fix spurious error about uninitialized have_end

in gnc_tree_view_account_select_subaccounts, gcc thinks have_end might
not be initialized, but since the function exits if num_children == 0,
the while (num_children) loop will always be entered. Silence the
warning.
This commit is contained in:
Romanos Skiadas 2021-08-27 01:00:32 +03:00 committed by Christopher Lam
parent e3fd6bf4fe
commit b42052464b

View File

@ -1676,7 +1676,7 @@ gnc_tree_view_account_select_subaccounts (GncTreeViewAccount *view,
GtkTreeSelection *selection;
GtkTreePath *sp_account, *sp_start, *sp_end;
GtkTreeIter si_account, si_start, si_end;
gboolean have_start, have_end;
gboolean have_start, have_end = FALSE;
gint num_children;
ENTER("view %p, account %p (%s)", view, account, xaccAccountGetName(account));