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

pull/1541/head
Christopher Lam 3 years ago
parent abcce5000c
commit 89e63ef672

@ -107,8 +107,8 @@ gnc_module_system_search_dirs(void)
case G_SEARCHPATH_SEPARATOR: case G_SEARCHPATH_SEPARATOR:
if (!escchar) if (!escchar)
{ {
list = g_list_append(list, token->str); char *token_str = g_string_free (token, FALSE);
g_string_free(token, TRUE); list = g_list_append (list, token_str);
token = g_string_new(NULL); token = g_string_new(NULL);
} }
else else

Loading…
Cancel
Save