projects
/
platform
/
core
/
system
/
modes.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13f8da7
)
fix coverity issues
author
Youngjae Shin
<yj99.shin@samsung.com>
Mon, 23 Mar 2020 06:19:03 +0000
(15:19 +0900)
committer
Youngjae Shin
<yj99.shin@samsung.com>
Mon, 23 Mar 2020 06:20:37 +0000
(15:20 +0900)
supervisor/ClientConnection.cpp
patch
|
blob
|
history
diff --git
a/supervisor/ClientConnection.cpp
b/supervisor/ClientConnection.cpp
index 5d34a52b9876dd079219d1c9f2851dfd4c6fe672..f253553d244195f0940794b46cb6d9b65f5043d3 100644
(file)
--- a/
supervisor/ClientConnection.cpp
+++ b/
supervisor/ClientConnection.cpp
@@
-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);
}