diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-11-12 16:40:40 (EST) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-11-12 16:40:40 (EST) |
commit | 0dd9b52232264472210314400445525770854d7a (patch) | |
tree | 0e7d7da28afa6e7b86b6e070c4b96efd47ea476a | |
parent | 001c377edd171348a4bfd0fd78d3033423cc46a4 (diff) | |
download | marquee-0dd9b52232264472210314400445525770854d7a.zip marquee-0dd9b52232264472210314400445525770854d7a.tar.gz marquee-0dd9b52232264472210314400445525770854d7a.tar.bz2 |
mq_config_new(): Use g_new0() instead of malloc()
-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(), |