Fix segfault when saving to new db.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gda-dev2@17413 57a11ea4-9604-0410-9ed3-97b8803252fd
archive
Phil Longstaff 18 years ago committed by John Ralls
parent bcabfea45d
commit 96e042da7a

@ -143,12 +143,18 @@ load_all_billterms( GncSqlBackend* be )
}
/* ================================================================= */
static void
do_save_billterm( QofInstance* inst, gpointer p2 )
{
gnc_sql_save_billterm( (GncSqlBackend*)p2, inst );
}
static void
write_billterms( GncSqlBackend* be )
{
g_return_if_fail( be != NULL );
qof_object_foreach( GNC_ID_BILLTERM, be->primary_book, (QofInstanceForeachCB)gnc_sql_save_billterm, (gpointer)be );
qof_object_foreach( GNC_ID_BILLTERM, be->primary_book, do_save_billterm, (gpointer)be );
}
/* ================================================================= */

Loading…
Cancel
Save