mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
deal properly if owner == NULL (return FALSE)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7031 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
aa9324090e
commit
094f790dd0
@ -235,7 +235,7 @@ gboolean gncOwnerGetOwnerFromLot (GNCLot *lot, GncOwner *owner)
|
||||
GNCBook *book;
|
||||
GncOwnerType type;
|
||||
|
||||
if (!lot) return FALSE;
|
||||
if (!lot || !owner) return FALSE;
|
||||
|
||||
book = gnc_lot_get_book (lot);
|
||||
kvp = gnc_lot_get_slots (lot);
|
||||
|
Loading…
Reference in New Issue
Block a user