Use g_new or g_new0 when C++ compiler would complain about implicit cast
This commit is contained in:
+1
-1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user