Use g_new or g_new0 when C++ compiler would complain about implicit cast

This commit is contained in:
Pavel Roskin
2016-06-21 16:30:18 -07:00
parent a24df49241
commit 5829323ad8
18 changed files with 31 additions and 27 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ sig_sesman_reload_cfg(int sig)
return;
}
cfg = g_malloc(sizeof(struct config_sesman), 1);
cfg = g_new0(struct config_sesman, 1);
if (0 == cfg)
{