* src/engine/Account.c: initialize the returned values in

finder_help_function().  This fixes bug #108883 (and possibly
	  others not reported).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8625 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins 2003-06-16 05:31:29 +00:00
parent fe9ae37aeb
commit 9cc5fc5dfd
2 changed files with 9 additions and 3 deletions

View File

@ -69,6 +69,10 @@
certain reports doesn't work right when the "reverse account
balances" is set in certain ways. Fixes #107472.
* src/engine/Account.c: initialize the returned values in
finder_help_function(). This fixes bug #108883 (and possibly
others not reported).
2003-06-14 Derek Atkins <derek@ihtfp.com>
* src/backend/file/io-gncxml-v2.c: make the book-string an extern

View File

@ -3099,6 +3099,11 @@ finder_help_function(Account *account,
{
GList *slp;
/* First, make sure we set the data to NULL BEFORE we start */
if (split) *split = NULL;
if (trans) *trans = NULL;
/* Then see if we have any work to do */
if (account == NULL) return;
/* Why is this loop iterated backwards ?? Presumably because the split
@ -3118,9 +3123,6 @@ finder_help_function(Account *account,
return;
}
}
if( split ) *split = NULL;
if( trans ) *trans = NULL;
}
Split *