r16209 - gnucash/trunk/src/import-export/ofx - Check ofx structure for sanity. Partly fixes #450276.
Christian Stimming
cstim at cvs.gnucash.org
Sun Jun 24 04:20:11 EDT 2007
Author: cstim
Date: 2007-06-24 04:20:07 -0400 (Sun, 24 Jun 2007)
New Revision: 16209
Trac: http://svn.gnucash.org/trac/changeset/16209
Modified:
gnucash/trunk/src/import-export/ofx/gnc-ofx-import.c
Log:
Check ofx structure for sanity. Partly fixes #450276.
Modified: gnucash/trunk/src/import-export/ofx/gnc-ofx-import.c
===================================================================
--- gnucash/trunk/src/import-export/ofx/gnc-ofx-import.c 2007-06-23 12:09:53 UTC (rev 16208)
+++ gnucash/trunk/src/import-export/ofx/gnc-ofx-import.c 2007-06-24 08:20:07 UTC (rev 16209)
@@ -336,7 +336,10 @@
xaccSplitSetMemo(split, data.memo);
}
}
- else if(data.unique_id_valid==true&&data.security_data_ptr->secname_valid==true)
+ else if(data.unique_id_valid == true
+ && data.security_data_valid
+ && data.security_data_ptr != NULL
+ && data.security_data_ptr->secname_valid == true)
{
/************************ Process an investment transaction ******************************/
/* Note that the ACCT_TYPE_STOCK account type should be replaced with something
More information about the gnucash-changes
mailing list