cleanup: use g_new0 and g_strdup for alias allocation

And move whole preferences module to gchar.
This commit is contained in:
Michael Vetter
2026-02-26 22:47:23 +01:00
parent aec8e48268
commit 55be1de29c
6 changed files with 113 additions and 113 deletions

View File

@@ -578,7 +578,7 @@ _rosterwin_resources(ProfLayoutSplit* layout, PContact contact, int current_inde
g_string_append(msg, " ");
this_indent--;
}
auto_char char* ch = prefs_get_roster_resource_char();
auto_gchar gchar* ch = prefs_get_roster_resource_char();
if (ch) {
g_string_append_printf(msg, "%s", ch);
}