From 5829323ad88f8120730968cfe165e590a7fb2d59 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Tue, 21 Jun 2016 16:30:18 -0700 Subject: Use g_new or g_new0 when C++ compiler would complain about implicit cast --- sesman/sig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sesman/sig.c') diff --git a/sesman/sig.c b/sesman/sig.c index b10be5fb..3cc3395a 100644 --- a/sesman/sig.c +++ b/sesman/sig.c @@ -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) { -- cgit v1.2.3