* [PATCH] core/device: Fix using not initialised uuid value.
@ 2016-09-08 9:29 Marcin Kraglak
2016-09-09 14:47 ` Luiz Augusto von Dentz
0 siblings, 1 reply; 2+ messages in thread
From: Marcin Kraglak @ 2016-09-08 9:29 UTC (permalink / raw)
To: linux-bluetooth
---
src/device.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/device.c b/src/device.c
index 9586022..788554a 100644
--- a/src/device.c
+++ b/src/device.c
@@ -2058,6 +2058,7 @@ static void store_incl(struct gatt_db_attribute *attr, void *user_data)
sprintf(handle, "%04hx", handle_num);
+ gatt_db_attribute_get_service_uuid(service, &uuid);
bt_uuid_to_string(&uuid, uuid_str, sizeof(uuid_str));
sprintf(value, GATT_INCLUDE_UUID_STR ":%04hx:%04hx:%s", start,
end, uuid_str);
--
2.5.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] core/device: Fix using not initialised uuid value.
2016-09-08 9:29 [PATCH] core/device: Fix using not initialised uuid value Marcin Kraglak
@ 2016-09-09 14:47 ` Luiz Augusto von Dentz
0 siblings, 0 replies; 2+ messages in thread
From: Luiz Augusto von Dentz @ 2016-09-09 14:47 UTC (permalink / raw)
To: Marcin Kraglak; +Cc: linux-bluetooth@vger.kernel.org
Hi Marcin,
On Thu, Sep 8, 2016 at 12:29 PM, Marcin Kraglak
<marcin.kraglak@tieto.com> wrote:
> ---
> src/device.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/device.c b/src/device.c
> index 9586022..788554a 100644
> --- a/src/device.c
> +++ b/src/device.c
> @@ -2058,6 +2058,7 @@ static void store_incl(struct gatt_db_attribute *attr, void *user_data)
>
> sprintf(handle, "%04hx", handle_num);
>
> + gatt_db_attribute_get_service_uuid(service, &uuid);
> bt_uuid_to_string(&uuid, uuid_str, sizeof(uuid_str));
> sprintf(value, GATT_INCLUDE_UUID_STR ":%04hx:%04hx:%s", start,
> end, uuid_str);
> --
> 2.5.5
Applied, thanks.
--
Luiz Augusto von Dentz
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-09-09 14:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-08 9:29 [PATCH] core/device: Fix using not initialised uuid value Marcin Kraglak
2016-09-09 14:47 ` Luiz Augusto von Dentz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).