mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-25 18:30:23 -06:00
Fix unchecked ptr dereference.
First crash in Bug 798225.
This commit is contained in:
parent
d4bd600596
commit
1387d5f960
@ -704,7 +704,7 @@ GncTaxTableList * gncTaxTableGetTables (QofBook *book)
|
||||
if (!book) return NULL;
|
||||
|
||||
bi = qof_book_get_data (book, _GNC_MOD_NAME);
|
||||
return bi->tables;
|
||||
return bi ? bi->tables : NULL;
|
||||
}
|
||||
|
||||
const char *gncTaxTableGetName (const GncTaxTable *table)
|
||||
|
Loading…
Reference in New Issue
Block a user