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

@@ -244,7 +244,7 @@ _conn_apply_settings(const char* const jid, const char* const passwd, const char
return FALSE;
}
auto_char char* cert_path = prefs_get_tls_certpath();
auto_gchar gchar* cert_path = prefs_get_tls_certpath();
if (cert_path) {
xmpp_conn_set_capath(conn.xmpp_conn, cert_path);
}