Bug 798923 - OFX import is no longer matching security nor asking...

for stock account.

Gotta deref the iterator in the loop, not the list head.
This commit is contained in:
John Ralls 2023-05-22 11:20:19 -05:00
parent de8d5ce942
commit 369b0855ff

View File

@ -73,7 +73,7 @@ gnc_commodity * gnc_import_select_commodity(const char * cusip,
GList *comm_list = gnc_commodity_table_get_commodities (commodity_table, ns);
for (GList *m = comm_list; !retval && m; m = g_list_next (m))
{
gnc_commodity *com = comm_list->data;
gnc_commodity *com = m->data;
DEBUG("Looking at commodity %s", gnc_commodity_get_fullname (com));
if (!g_strcmp0 (gnc_commodity_get_cusip (com), cusip))
{