#510725: Fix a crash when comparing cuspis in commodity matcher.

BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16884 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Andreas Köhler 2008-01-23 22:54:50 +00:00
parent 086d225db6
commit 406f3fd879

View File

@ -122,7 +122,7 @@ gnc_commodity * gnc_import_select_commodity(char * cusip,
}
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))
{