mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix crash when running check & repair on an open AP/AR register
This was reported in comment 15 of https://bugzilla.gnome.org/show_bug.cgi?id=741418
This commit is contained in:
parent
23d0f79d5d
commit
efc8544ff9
@ -126,6 +126,9 @@ xaccTransScrubOrphans (Transaction *trans)
|
||||
SplitList *node;
|
||||
QofBook *book = NULL;
|
||||
Account *root = NULL;
|
||||
|
||||
if (!trans) return;
|
||||
|
||||
for (node = trans->splits; node; node = node->next)
|
||||
{
|
||||
Split *split = node->data;
|
||||
|
Loading…
Reference in New Issue
Block a user