2001-05-14 Dave Peticolas <dave@krondo.com>

* src/engine/Account.c (xaccAccountGetChildren): fix bug


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4193 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas 2001-05-14 21:31:49 +00:00
parent e950994585
commit ae1a33bb69
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2001-05-14 Dave Peticolas <dave@krondo.com> 2001-05-14 Dave Peticolas <dave@krondo.com>
* src/engine/Account.c (xaccAccountGetChildren): fix bug
* src/engine/sixtp-dom-generators.c (add_kvp_value_node): use * src/engine/sixtp-dom-generators.c (add_kvp_value_node): use
xmlNewTextChild. xmlNewTextChild.

View File

@ -1296,7 +1296,7 @@ xaccAccountGetChildren (Account *acc)
{ {
if (!acc) return NULL; if (!acc) return NULL;
if (acc->children == NULL) if (acc->children == NULL)
acc->children = xaccMallocAccountGroup (); xaccAccountInsertSubAccount (acc, NULL);
return (acc->children); return (acc->children);
} }