From dfea2253dc990005ebaf751af97d5cffd3e657dc Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Tue, 13 Jan 2015 11:32:08 +0200 Subject: [PATCH] shared/gatt: Fix typo in request_create check Fixes typo, check for req instead of client. --- src/shared/gatt-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/gatt-client.c b/src/shared/gatt-client.c index b7cf75781..1acd34f61 100644 --- a/src/shared/gatt-client.c +++ b/src/shared/gatt-client.c @@ -1895,7 +1895,7 @@ unsigned int bt_gatt_client_read_multiple(struct bt_gatt_client *client, return 0; req = request_create(client); - if (!client) { + if (!req) { free(op); return 0; } -- 2.47.3