From: Andrei Emeltchenko <[email protected]>
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 2c14c3a..42dc504 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.1.0
Hi Andrei,
On Tue, Jan 13, 2015 at 7:32 AM, Andrei Emeltchenko
<[email protected]> wrote:
> From: Andrei Emeltchenko <[email protected]>
>
> 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 2c14c3a..42dc504 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.1.0
Applied, thanks.
--
Luiz Augusto von Dentz