diff options
author | Michael Vetter <jubalh@iodoru.org> | 2019-10-14 11:35:18 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2019-10-14 11:35:18 +0200 |
commit | d0c3d3fd6b7d01535c2dd1d744b159b14afb5f8b (patch) | |
tree | b84259b2950abd7b072051835b9e9edc4f6ab95f | |
parent | 0499c4e0eee945127e161b372193e76281a5298b (diff) | |
download | profani-tty-d0c3d3fd6b7d01535c2dd1d744b159b14afb5f8b.tar.gz |
Null-set account struct
Surpresses the valgrind warning about uninit. values.
-rw-r--r-- | src/config/account.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |