diff options
author | Amit Purwar <amit.purwar@samsung.com> | 2019-01-16 10:29:02 +0530 |
---|---|---|
committer | Amit Purwar <amit.purwar@samsung.com> | 2019-01-16 10:29:02 +0530 |
commit | f099610d46fc7298f5ca6cb966b22bbcf72d3019 (patch) | |
tree | 357de397ba4bb8e9f17dbbd542d021b111b31c6c | |
parent | d0e10ad065de5425585d6976fa7beb4dee2686df (diff) | |
download | bluetooth-f099610d46fc7298f5ca6cb966b22bbcf72d3019.tar.gz bluetooth-f099610d46fc7298f5ca6cb966b22bbcf72d3019.tar.bz2 bluetooth-f099610d46fc7298f5ca6cb966b22bbcf72d3019.zip |
Fixed string comparision logic for gatt device addresssubmit/tizen/20190128.005753submit/tizen/20190123.050251accepted/tizen/unified/20190128.061625
Change-Id: If1fdb278e8e3c20bdbf2a6b3ee7966221bc24ea5
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
-rw-r--r-- | src/bluetooth-gatt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bluetooth-gatt.c b/src/bluetooth-gatt.c index 7c22bb1..57751d0 100644 --- a/src/bluetooth-gatt.c +++ b/src/bluetooth-gatt.c @@ -195,7 +195,7 @@ bt_gatt_client_h _bt_gatt_get_client(const char *remote_addr) if (client_s == NULL) continue; - if (!g_strcmp0(client_s->remote_address, remote_addr)) + if (!g_ascii_strcasecmp(client_s->remote_address, remote_addr)) return (bt_gatt_client_h)client_s; } @@ -3971,7 +3971,7 @@ static bt_gatt_client_h __find_gatt_client(const char *remote_address) for (l = gatt_client_list; l; l = g_slist_next(l)) { bt_gatt_client_s *client_s = l->data; - if (!g_strcmp0(client_s->remote_address, remote_address)) + if (!g_ascii_strcasecmp(client_s->remote_address, remote_address)) return (const bt_gatt_client_h)l->data; } |