From d0c3d3fd6b7d01535c2dd1d744b159b14afb5f8b Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Mon, 14 Oct 2019 11:35:18 +0200 Subject: [PATCH] Null-set account struct Surpresses the valgrind warning about uninit. values. --- src/config/account.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/config/account.c b/src/config/account.c index 0c23c585..84d88e64 100644 --- a/src/config/account.c +++ b/src/config/account.c @@ -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);