r17160 - gnucash/trunk/lib/libqof/qof - Match NULL and guid_null() for NULL GUID Matches

Derek Atkins warlord at cvs.gnucash.org
Sat May 17 13:46:40 EDT 2008


Author: warlord
Date: 2008-05-17 13:46:40 -0400 (Sat, 17 May 2008)
New Revision: 17160
Trac: http://svn.gnucash.org/trac/changeset/17160

Modified:
   gnucash/trunk/lib/libqof/qof/qofquerycore.c
Log:
Match NULL and guid_null() for NULL GUID Matches

Modified: gnucash/trunk/lib/libqof/qof/qofquerycore.c
===================================================================
--- gnucash/trunk/lib/libqof/qof/qofquerycore.c	2008-05-17 13:22:24 UTC (rev 17159)
+++ gnucash/trunk/lib/libqof/qof/qofquerycore.c	2008-05-17 17:46:40 UTC (rev 17160)
@@ -661,7 +661,7 @@
     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 @@
 				break;
 			}
 			case QOF_GUID_MATCH_NULL : {
-				return (guid == NULL);
+				return ((guid == NULL) || guid_equal(guid, guid_null()));
 				break;
 			}
 			default : {
@@ -1563,7 +1563,7 @@
     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");



More information about the gnucash-changes mailing list