gnucash maint: Fix crash when running check & repair on an open AP/AR register
Geert Janssens
gjanssens at code.gnucash.org
Sat Dec 20 02:34:52 EST 2014
Updated via https://github.com/Gnucash/gnucash/commit/efc8544f (commit)
from https://github.com/Gnucash/gnucash/commit/23d0f79d (commit)
commit efc8544ff97bf732ae92741ed3916d3c52c1b84c
Author: Geert Janssens <janssens-geert at telenet.be>
Date: Sat Dec 20 12:10:20 2014 +0100
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
diff --git a/src/engine/Scrub.c b/src/engine/Scrub.c
index 2ab318d..2c995f4 100644
--- a/src/engine/Scrub.c
+++ b/src/engine/Scrub.c
@@ -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;
Summary of changes:
src/engine/Scrub.c | 3 +++
1 file changed, 3 insertions(+)
More information about the gnucash-changes
mailing list