r16978 - gnucash/branches/2.2/src/import-export - [r16884] #510725: Fix a crash when comparing cuspis in commodity matcher.

Andreas Köhler andi5 at cvs.gnucash.org
Fri Feb 29 16:00:18 EST 2008


Author: andi5
Date: 2008-02-29 16:00:18 -0500 (Fri, 29 Feb 2008)
New Revision: 16978
Trac: http://svn.gnucash.org/trac/changeset/16978

Modified:
   gnucash/branches/2.2/src/import-export/import-commodity-matcher.c
Log:
[r16884] #510725: Fix a crash when comparing cuspis in commodity matcher.

Approved by andrewsw.


Modified: gnucash/branches/2.2/src/import-export/import-commodity-matcher.c
===================================================================
--- gnucash/branches/2.2/src/import-export/import-commodity-matcher.c	2008-02-29 21:00:08 UTC (rev 16977)
+++ gnucash/branches/2.2/src/import-export/import-commodity-matcher.c	2008-02-29 21:00:18 UTC (rev 16978)
@@ -122,7 +122,7 @@
       
     }
   if (retval != NULL&&
-      gnc_commodity_get_cusip(tmp_commodity)!=NULL &&
+      gnc_commodity_get_cusip(retval)!=NULL &&
       cusip != NULL &&
       (strncmp(gnc_commodity_get_cusip(retval),cusip,strlen(cusip))!=0))
     {



More information about the gnucash-changes mailing list