r17671 - gnucash/trunk/lib/libqof/qof - Fix gcc warning from qof's lookup macro
Derek Atkins
warlord at cvs.gnucash.org
Tue Oct 28 10:58:15 EDT 2008
Author: warlord
Date: 2008-10-28 10:58:15 -0400 (Tue, 28 Oct 2008)
New Revision: 17671
Trac: http://svn.gnucash.org/trac/changeset/17671
Modified:
gnucash/trunk/lib/libqof/qof/qofbook.h
Log:
Fix gcc warning from qof's lookup macro
Modified: gnucash/trunk/lib/libqof/qof/qofbook.h
===================================================================
--- gnucash/trunk/lib/libqof/qof/qofbook.h 2008-10-28 14:45:26 UTC (rev 17670)
+++ gnucash/trunk/lib/libqof/qof/qofbook.h 2008-10-28 14:58:15 UTC (rev 17671)
@@ -131,7 +131,7 @@
/** 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); \
More information about the gnucash-changes
mailing list