mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-29 04:56:21 +00:00
Null-set account struct
Surpresses the valgrind warning about uninit. values.
This commit is contained in:
@@ -57,6 +57,7 @@ account_new(const gchar *const name, const gchar *const jid,
|
|||||||
const char *const theme, gchar *tls_policy)
|
const char *const theme, gchar *tls_policy)
|
||||||
{
|
{
|
||||||
ProfAccount *new_account = malloc(sizeof(ProfAccount));
|
ProfAccount *new_account = malloc(sizeof(ProfAccount));
|
||||||
|
memset(new_account, 0, sizeof(ProfAccount));
|
||||||
|
|
||||||
new_account->name = strdup(name);
|
new_account->name = strdup(name);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user