Fixed a SVACE warning 82/131482/2
authorkmook <kmook.choi@samsung.com>
Mon, 29 May 2017 10:14:59 +0000 (19:14 +0900)
committerkmook <kmook.choi@samsung.com>
Tue, 30 May 2017 02:01:19 +0000 (11:01 +0900)
Change-Id: I6804c579922669b8f1e79ba858928eadcfdf73fe
Signed-off-by: kmook <kmook.choi@samsung.com>
lib/dbus_client.cpp

index 126b5ff73ffd1301e1cc7a3fb92afa25eed76c1c..43c07a75f2c15c9b221dd50788e223460231d611 100755 (executable)
@@ -23,7 +23,7 @@
 
 static GDBusConnection *dbus_connection = NULL;
 static GDBusNodeInfo *dbus_node_info = NULL;
-guint listener_id = -1;
+static guint listener_id = 0;
 
 typedef std::map<std::string, subject_response_cb> response_cb_map_t;
 static response_cb_map_t *response_cb_map = NULL;
@@ -159,9 +159,9 @@ void conv::dbus_client::release()
 {
        _D("release dbus client");
        if (dbus_connection) {
-               if (listener_id >= 0) {
+               if (listener_id > 0) {
                        g_dbus_connection_signal_unsubscribe(dbus_connection, listener_id);
-                       listener_id = -1;
+                       listener_id = 0;
                }
 
                g_dbus_connection_flush_sync(dbus_connection, NULL, NULL);