mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-25 10:20:18 -06:00
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:
parent
98373d0ccb
commit
d4448d19aa
@ -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); \
|
||||
|
Loading…
Reference in New Issue
Block a user