Null-set account struct

Surpresses the valgrind warning about uninit. values.
This commit is contained in:
Michael Vetter
2019-10-14 11:35:18 +02:00
parent 0499c4e0ee
commit d0c3d3fd6b

View File

@@ -57,6 +57,7 @@ account_new(const gchar *const name, const gchar *const jid,
const char *const theme, gchar *tls_policy)
{
ProfAccount *new_account = malloc(sizeof(ProfAccount));
memset(new_account, 0, sizeof(ProfAccount));
new_account->name = strdup(name);