From 9f1121732cfb3a77dafeeef8494737cc231d694b Mon Sep 17 00:00:00 2001 From: "saerome.kim" Date: Mon, 19 Mar 2018 20:33:11 +0900 Subject: [PATCH] fis svace issue - WID 317087 Change-Id: I17af8ef3b970d511f80ad994ef164d0820524c31 Signed-off-by: saerome.kim --- .../zigbee-interface/src/zigbee_service_dbus_interface.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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) */ -- 2.7.4