fis svace issue
[platform/core/connectivity/zigbee-manager.git] / 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)
         */