gnucash maint: [import-main-matcher] bug: test str from the string hash provided

Christopher Lam clam at code.gnucash.org
Sun Nov 6 22:50:14 EST 2022


Updated	 via  https://github.com/Gnucash/gnucash/commit/60c5e200 (commit)
	from  https://github.com/Gnucash/gnucash/commit/6f80c548 (commit)



commit 60c5e20084d68b23ce41fd2ad06b2a0e4a271291
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Mon Nov 7 11:43:03 2022 +0800

    [import-main-matcher] bug: test str from the string hash provided
    
    ...instead of the description string hash.

diff --git a/gnucash/import-export/import-main-matcher.c b/gnucash/import-export/import-main-matcher.c
index b82a201b6..bb4dfbe0d 100644
--- a/gnucash/import-export/import-main-matcher.c
+++ b/gnucash/import-export/import-main-matcher.c
@@ -1093,7 +1093,7 @@ static inline void
 maybe_add_string (GNCImportMainMatcher *info, GHashTable *hash, const char *str)
 {
     char *new_string;
-    if (!str || !str[0] || g_hash_table_lookup (info->desc_hash, str))
+    if (!str || !str[0] || g_hash_table_lookup (hash, str))
         return;
     new_string = g_strdup (str);
     info->new_strings = g_list_prepend (info->new_strings, new_string);



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



More information about the gnucash-changes mailing list