Fix coverity issue(CID 106881) 86/177686/3 accepted/tizen/unified/20180503.080759 submit/tizen/20180503.043651
authorsinikang <sinikang@samsung.com>
Thu, 3 May 2018 02:13:35 +0000 (11:13 +0900)
committersinikang <sinikang@samsung.com>
Thu, 3 May 2018 04:08:15 +0000 (13:08 +0900)
Change-Id: I1275436ced943d727b9adf1c3b592bec3968ba50

packaging/tel-plugin-dbus_tapi.spec
src/dtapi_main.c

index 77ebf5a..c721c65 100644 (file)
@@ -1,6 +1,6 @@
 %define major 0
 %define minor 3
-%define patchlevel 94
+%define patchlevel 95
 
 Name:           tel-plugin-dbus_tapi
 Version:        %{major}.%{minor}.%{patchlevel}
index d1260c3..d67dc63 100644 (file)
@@ -246,7 +246,7 @@ static gboolean on_manager_getmodems(TelephonyManager *mgr,
         */
        for (index = 0; index < count; index++) {
                cp_name_list_temp = g_slist_nth(cp_name_list, index);
-               if(cp_name_list_temp == NULL)
+               if (cp_name_list_temp == NULL)
                        continue;
                list[index] = g_strdup(cp_name_list_temp->data);
                dbg("list[%d]: %s", index, list[index]);
@@ -332,8 +332,10 @@ static void on_bus_acquired(GDBusConnection *conn,
        /*
         * Export interface onto Connection (conn) with 'path' (MY_DBUS_PATH)
         */
-       g_dbus_interface_skeleton_export(G_DBUS_INTERFACE_SKELETON(ctx->mgr),
-               conn, MY_DBUS_PATH, NULL);
+       if (!g_dbus_interface_skeleton_export(G_DBUS_INTERFACE_SKELETON(ctx->mgr),
+               conn, MY_DBUS_PATH, NULL)) {
+               err("Export MY_DBUS_PATH for telephony failed ");
+       }
 
        /*
         * Exports all objects managed by 'manager' on Connection (conn)