r16040 - gnucash/trunk/lib/libqof/qof - Fix a problem copying a guid from an object to a local variable.

David Hampton hampton at cvs.gnucash.org
Wed May 2 22:56:17 EDT 2007


Author: hampton
Date: 2007-05-02 22:56:15 -0400 (Wed, 02 May 2007)
New Revision: 16040
Trac: http://svn.gnucash.org/trac/changeset/16040

Modified:
   gnucash/trunk/lib/libqof/qof/qofbookmerge.c
Log:
Fix a problem copying a guid from an object to a local variable.

Modified: gnucash/trunk/lib/libqof/qof/qofbookmerge.c
===================================================================
--- gnucash/trunk/lib/libqof/qof/qofbookmerge.c	2007-05-02 05:42:41 UTC (rev 16039)
+++ gnucash/trunk/lib/libqof/qof/qofbookmerge.c	2007-05-03 02:56:15 UTC (rev 16040)
@@ -451,8 +451,7 @@
 	g_return_if_fail(mergeEnt != NULL);
 	currentRule = mergeData->currentRule;
 	g_return_if_fail(currentRule != NULL);
-	g = guid_malloc();
-	qof_instance_copy_guid(g, mergeEnt);
+	g = guid_copy(qof_instance_get_guid(mergeEnt));
 	mergeRule = g_new(QofBookMergeRule,1);
 	mergeRule->importEnt = 		mergeEnt;
 	mergeRule->difference = 	difference = 0;



More information about the gnucash-changes mailing list