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:
Derek Atkins 2002-06-26 23:18:22 +00:00
parent aa9324090e
commit 094f790dd0

View File

@ -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);