mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
In gnc_find_or_create_equity_account, fix crash if there is no account "Equity", #436155.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16070 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
cc1f575c56
commit
5237c40147
@ -639,7 +639,7 @@ gnc_find_or_create_equity_account (Account *root,
|
||||
}
|
||||
|
||||
parent = gnc_account_lookup_by_name(root, _("Equity"));
|
||||
if (parent && xaccAccountGetType (parent) != ACCT_TYPE_EQUITY)
|
||||
if (!parent || xaccAccountGetType (parent) != ACCT_TYPE_EQUITY)
|
||||
parent = root;
|
||||
g_assert(parent);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user