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

John Ralls jralls at code.gnucash.org
Mon May 22 12:22:16 EDT 2023


Updated	 via  https://github.com/Gnucash/gnucash/commit/369b0855 (commit)
	from  https://github.com/Gnucash/gnucash/commit/de8d5ce9 (commit)



commit 369b0855ff931b9ea9815c6f4609b75c80731c04
Author: John Ralls <jralls at ceridwen.us>
Date:   Mon May 22 11:20:19 2023 -0500

    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.

diff --git a/gnucash/import-export/import-commodity-matcher.c b/gnucash/import-export/import-commodity-matcher.c
index 12b6b1d7c5..3a75d66edb 100644
--- a/gnucash/import-export/import-commodity-matcher.c
+++ b/gnucash/import-export/import-commodity-matcher.c
@@ -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))
             {



Summary of changes:
 gnucash/import-export/import-commodity-matcher.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list