From 0dd9b52232264472210314400445525770854d7a Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 12 Nov 2017 16:40:40 -0500 Subject: mq_config_new(): Use g_new0() instead of malloc() --- diff --git a/src/config/config.c b/src/config/config.c index 2a37cc2..11731ca 100644 --- a/src/config/config.c +++ b/src/config/config.c @@ -186,7 +186,7 @@ mq_config_new(const gchar *profile, MqConfigProfile profile_type) { MqConfig *config; - config = malloc(sizeof(*config)); + config = g_new0(MqConfig, 1); config->profile = g_strdup(profile); config->file_name = g_build_filename(g_get_user_config_dir(), -- cgit v0.9.1