From: Jiwoong Im Date: Mon, 19 Sep 2016 06:26:37 +0000 (+0900) Subject: fix alarm-server segmentation fault X-Git-Tag: accepted/tizen/common/20160919.154752^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d786ce5392ce062cc9300ca655af8b4093617894;p=platform%2Fcore%2Fappfw%2Falarm-manager.git fix alarm-server segmentation fault - Creating a GDBusObjectManagerServer object step is missing. Change-Id: Ia9369aa43f96719417f5d26c89c021875143f772 Signed-off-by: Jiwoong Im --- diff --git a/alarm-manager.c b/alarm-manager.c index e3fcca9..f96205c 100644 --- a/alarm-manager.c +++ b/alarm-manager.c @@ -3291,6 +3291,12 @@ static bool __initialize_dbus() guint subsc_id; ALARM_MGR_LOG_PRINT("__initialize_dbus Enter"); + alarmmgr_server = g_dbus_object_manager_server_new(ALARM_MGR_DBUS_PATH); + if (alarmmgr_server == NULL) { + ALARM_MGR_EXCEPTION_PRINT("Creating a new server object is failed."); + return false; + } + connection = g_bus_get_sync(G_BUS_TYPE_SYSTEM, NULL, &error); if (connection == NULL) { ALARM_MGR_EXCEPTION_PRINT("g_bus_get_sync() is failed");