gnucash maint: Bug 798754 - Build fails with gcc 13 and glib > 2.76, ter

Christopher Lam clam at code.gnucash.org
Sat Feb 25 19:34:38 EST 2023


Updated	 via  https://github.com/Gnucash/gnucash/commit/89e63ef6 (commit)
	from  https://github.com/Gnucash/gnucash/commit/abcce500 (commit)



commit 89e63ef67235d231d242f018894295a6cb38cfc3
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sun Feb 26 08:29:56 2023 +0800

    Bug 798754 - Build fails with gcc 13 and glib > 2.76, ter

diff --git a/libgnucash/gnc-module/gnc-module.c b/libgnucash/gnc-module/gnc-module.c
index bef690678..0856c2566 100644
--- a/libgnucash/gnc-module/gnc-module.c
+++ b/libgnucash/gnc-module/gnc-module.c
@@ -107,8 +107,8 @@ gnc_module_system_search_dirs(void)
         case G_SEARCHPATH_SEPARATOR:
             if (!escchar)
             {
-                list = g_list_append(list, token->str);
-                g_string_free(token, TRUE);
+                char *token_str = g_string_free (token, FALSE);
+                list = g_list_append (list, token_str);
                 token = g_string_new(NULL);
             }
             else



Summary of changes:
 libgnucash/gnc-module/gnc-module.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)



More information about the gnucash-changes mailing list