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

@@ -206,7 +206,7 @@ cmd_tls_certpath(ProfWin* window, const char* const command, gchar** args)
cons_show("Certificate path defaulted to finding system certpath.");
return TRUE;
} else if (args[1] == NULL) {
auto_char char* path = prefs_get_tls_certpath();
auto_gchar gchar* path = prefs_get_tls_certpath();
if (path) {
cons_show("Trusted certificate path: %s", path);
} else {