fix coverity issues
authorYoungjae Shin <yj99.shin@samsung.com>
Mon, 23 Mar 2020 06:19:03 +0000 (15:19 +0900)
committerYoungjae Shin <yj99.shin@samsung.com>
Mon, 23 Mar 2020 06:20:37 +0000 (15:20 +0900)
supervisor/ClientConnection.cpp

index 5d34a52b9876dd079219d1c9f2851dfd4c6fe672..f253553d244195f0940794b46cb6d9b65f5043d3 100644 (file)
@@ -64,11 +64,12 @@ void ClientConnection::update(const std::string &name, ModeState state)
 
 void ClientConnection::onBusAcquired(GDBusConnection *conn, const gchar *name, gpointer userData)
 {
+       int ret;
        GError *error = NULL;
 
-       g_dbus_interface_skeleton_export(G_DBUS_INTERFACE_SKELETON(dbusHandle),
+       ret = g_dbus_interface_skeleton_export(G_DBUS_INTERFACE_SKELETON(dbusHandle),
                conn, MODES_DBUS_OBJPATH, &error);
-       if (error) {
+       if (FALSE == ret) {
                ERR("g_dbus_interface_skeleton_export() Fail(%s)", error->message);
                g_error_free(error);
        }