oops core dump

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8537 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 2003-06-10 05:42:21 +00:00
parent 7a5e046a01
commit 8c6ad9b6c5

View File

@ -86,7 +86,8 @@ gnc_book_get_schedxactions( GNCBook *book )
SchedXactionList *list;
if ( book == NULL ) return NULL;
list = gnc_book_get_data (book, GNC_SCHEDXACTIONS);
return list->sx_list;
if (list) return list->sx_list;
return NULL;
}
void
@ -96,7 +97,7 @@ gnc_book_set_schedxactions( GNCBook *book, GList *newList )
if ( book == NULL ) return;
old_list = gnc_book_get_data (book, GNC_SCHEDXACTIONS);
if (old_list->sx_list == newList) return;
if (old_list && old_list->sx_list == newList) return;
new_list = g_new (SchedXactionList, 1);
new_list->sx_notsaved = TRUE;