fis svace issue 86/173086/1 accepted/tizen/unified/20180320.065815 submit/tizen/20180320.010107
authorsaerome.kim <saerome.kim@samsung.com>
Mon, 19 Mar 2018 11:33:11 +0000 (20:33 +0900)
committersaerome.kim <saerome.kim@samsung.com>
Mon, 19 Mar 2018 11:33:11 +0000 (20:33 +0900)
- WID 317087

Change-Id: I17af8ef3b970d511f80ad994ef164d0820524c31
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
zigbee-daemon/zigbee-interface/src/zigbee_service_dbus_interface.c

index afab090..af19f9f 100644 (file)
@@ -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)
         */