diff options
-rw-r--r-- | src/config/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
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(), |