mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
7a5e046a01
commit
8c6ad9b6c5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user