mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Null-set account struct
Surpresses the valgrind warning about uninit. values.
This commit is contained in:
parent
0499c4e0ee
commit
d0c3d3fd6b
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user