[Gnucash-changes] r14181 - gnucash/branches/misc-backend/lib/libqof/qof - The postgres backend depends on the value of the null guid, so revert it

Chris Shoemaker chris at cvs.gnucash.org
Wed May 24 18:57:44 EDT 2006


Author: chris
Date: 2006-05-24 18:57:43 -0400 (Wed, 24 May 2006)
New Revision: 14181
Trac: http://svn.gnucash.org/trac/changeset/14181

Modified:
   gnucash/branches/misc-backend/lib/libqof/qof/guid.c
Log:
   The postgres backend depends on the value of the null guid, so revert it
   to its 1.8 value.


Modified: gnucash/branches/misc-backend/lib/libqof/qof/guid.c
===================================================================
--- gnucash/branches/misc-backend/lib/libqof/qof/guid.c	2006-05-24 22:54:03 UTC (rev 14180)
+++ gnucash/branches/misc-backend/lib/libqof/qof/guid.c	2006-05-24 22:57:43 UTC (rev 14181)
@@ -122,16 +122,13 @@
   static int null_inited = 0;
   static GUID null_guid;
 
-  if (!null_inited)
-  {
-    int i;
-    char *tmp = "NULLGUID.EMPTY.";
+  if (!null_inited) {
+      int i;
 
-      /* 16th space for '\O' */
-	  for (i = 0; i < GUID_DATA_SIZE; i++)
-      null_guid.data[i] = tmp[i];
+      for (i = 0; i < GUID_DATA_SIZE; i++)
+          null_guid.data[i] = '\0';
 
-    null_inited = 1;
+      null_inited = 1;
   }
 
   return &null_guid;



More information about the gnucash-changes mailing list