From: saerome.kim Date: Mon, 19 Mar 2018 11:33:11 +0000 (+0900) Subject: fis svace issue X-Git-Tag: accepted/tizen/unified/20180320.065815^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9f1121732cfb3a77dafeeef8494737cc231d694b;hp=308d35c61f8380c284ad5060f2a5181a16881b2c;p=platform%2Fcore%2Fconnectivity%2Fzigbee-manager.git fis svace issue - WID 317087 Change-Id: I17af8ef3b970d511f80ad994ef164d0820524c31 Signed-off-by: saerome.kim --- diff --git a/zigbee-daemon/zigbee-interface/src/zigbee_service_dbus_interface.c b/zigbee-daemon/zigbee-interface/src/zigbee_service_dbus_interface.c index afab090..af19f9f 100644 --- a/zigbee-daemon/zigbee-interface/src/zigbee_service_dbus_interface.c +++ b/zigbee-daemon/zigbee-interface/src/zigbee_service_dbus_interface.c @@ -362,6 +362,8 @@ static void zigbee_on_name_acquired(GDBusConnection *connection, static void zigbee_on_bus_acquired(GDBusConnection *connection, const gchar *name, gpointer user_data) { + gboolean ret; + GError *error = NULL; ZigbeeObjectSkeleton *zigbee_object; ZigBeeServiceInterface *service_interface = (ZigBeeServiceInterface *)user_data; ZigBeeService *service = NULL; @@ -413,9 +415,14 @@ static void zigbee_on_bus_acquired(GDBusConnection *connection, /* * Export 'manager' interface on ZigBee D-BUS */ - g_dbus_interface_skeleton_export(G_DBUS_INTERFACE_SKELETON(custom_data->zigbee_mgr), - connection, ZIGBEE_DBUS_PATH, NULL); - + ret = g_dbus_interface_skeleton_export(G_DBUS_INTERFACE_SKELETON(custom_data->zigbee_mgr), + connection, ZIGBEE_DBUS_PATH, &error); + if (FALSE == ret) { + /* LCOV_EXCL_START */ + Z_LOGW("g_dbus_interface_skeleton_export() Fail(%s)", error->message); + g_error_free(error); + /* LCOV_EXCL_STOP */ + } /* * Exports all objects managed by 'manager' on Connection (connection) */