From: Pawel Andruszkiewicz
Date: Wed, 3 Jun 2015 14:11:59 +0000 (+0200)
Subject: [Bluetooth] Wrong value was used in comparison.
X-Git-Tag: submit/tizen_mobile/20150612.133019^2~2^2~48^2
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4fd42ac3bff3939cef8a7d327022fcb3abc1f688;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git
[Bluetooth] Wrong value was used in comparison.
Prevent CID: 390684
[Verification] Code compiles.
Change-Id: I0a84b63bd25d1c8f0ad6d6b2bc737be13474578c
Signed-off-by: Pawel Andruszkiewicz
---
diff --git a/src/bluetooth/bluetooth_gatt_service.cc b/src/bluetooth/bluetooth_gatt_service.cc
index 5f79f742..f22b67ec 100755
--- a/src/bluetooth/bluetooth_gatt_service.cc
+++ b/src/bluetooth/bluetooth_gatt_service.cc
@@ -338,7 +338,7 @@ void BluetoothGATTService::ReadValue(const picojson::value& args,
char *value = nullptr;
int length = 0;
int ret = bt_gatt_get_value(handle, &value, &length);
- if (BT_ERROR_NONE != result) {
+ if (BT_ERROR_NONE != ret) {
plarform_res = util::GetBluetoothError(ret, "Error while getting value");
} else {
for (size_t i = 0 ; i < length; i++) {