From 8d532f650c43d38dd327421f26f502151e9f7572 Mon Sep 17 00:00:00 2001 From: Derek Atkins Date: Sat, 17 May 2008 17:46:40 +0000 Subject: [PATCH] Match NULL and guid_null() for NULL GUID Matches git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17160 57a11ea4-9604-0410-9ed3-97b8803252fd --- lib/libqof/qof/qofquerycore.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libqof/qof/qofquerycore.c b/lib/libqof/qof/qofquerycore.c index e734913dcf..10b1d42570 100644 --- a/lib/libqof/qof/qofquerycore.c +++ b/lib/libqof/qof/qofquerycore.c @@ -661,7 +661,7 @@ guid_match_predicate (gpointer object, QofParam *getter, return (node == NULL); break; case QOF_GUID_MATCH_NULL: - return (guid == NULL); + return ((guid == NULL) || guid_equal(guid, guid_null())); break; default: PWARN ("bad match type"); @@ -1383,7 +1383,7 @@ collect_match_predicate (gpointer object, QofParam *getter, break; } case QOF_GUID_MATCH_NULL : { - return (guid == NULL); + return ((guid == NULL) || guid_equal(guid, guid_null())); break; } default : { @@ -1563,7 +1563,7 @@ choice_match_predicate (gpointer object, QofParam *getter, return (node == NULL); break; case QOF_GUID_MATCH_NULL: - return (guid == NULL); + return ((guid == NULL) || guid_equal(guid, guid_null())); break; default: PWARN ("bad match type");