gnucash maint: Bug 798640 - Segfault when running saved report
John Ralls
jralls at code.gnucash.org
Sat Oct 29 20:45:43 EDT 2022
Updated via https://github.com/Gnucash/gnucash/commit/b9077bcc (commit)
from https://github.com/Gnucash/gnucash/commit/f2354d6b (commit)
commit b9077bccd396dfd6dc14673350a71428f1ea6258
Author: John Ralls <jralls at ceridwen.us>
Date: Sat Oct 29 17:45:35 2022 -0700
Bug 798640 - Segfault when running saved report
diff --git a/libgnucash/engine/Account.cpp b/libgnucash/engine/Account.cpp
index 5b80ef5a8..c9fe32b7a 100644
--- a/libgnucash/engine/Account.cpp
+++ b/libgnucash/engine/Account.cpp
@@ -6259,6 +6259,8 @@ gboolean xaccAccountRegister (void)
using AccountSet = std::unordered_set<Account*>;
static void maybe_add_descendants (Account* acc, gpointer arg)
{
+ g_return_if_fail (acc);
+
if (static_cast <AccountSet*> (arg)->insert (acc).second)
g_list_foreach (GET_PRIVATE(acc)->children, (GFunc) maybe_add_descendants, arg);
};
Summary of changes:
libgnucash/engine/Account.cpp | 2 ++
1 file changed, 2 insertions(+)
More information about the gnucash-changes
mailing list