Fix gcc warning from qof's lookup macro

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17671 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins 2008-10-28 14:58:15 +00:00
parent 98373d0ccb
commit d4448d19aa

View File

@ -131,7 +131,7 @@ GType qof_book_get_type(void);
/** Lookup an entity by guid, returning pointer to the entity */
#define QOF_BOOK_LOOKUP_ENTITY(book,guid,e_type,c_type) ({ \
QofInstance *val = NULL; \
if (guid && book) { \
if ((guid != NULL) && (book != NULL)) { \
QofCollection *col; \
col = qof_book_get_collection (book, e_type); \
val = qof_collection_lookup_entity (col, guid); \