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

This commit is contained in:
Christopher Lam 2023-02-26 08:29:56 +08:00
parent abcce5000c
commit 89e63ef672

View File

@ -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