2016-04-21 08:18:48

by François Beaufort

[permalink] [raw]
Subject: [PATCH BlueZ] Fix bluez build break by initializing variable.

>From Chromium: https://chromium.googlesource.com/chromiumos/third_party/bluez/+/c3d3ca2%5E%21/

Francois Beaufort (1):
Fix bluez build break by initializing variable.

profiles/audio/avrcp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--
2.7.0



2016-04-22 12:06:33

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: Re: [PATCH BlueZ] Fix bluez build break by initializing variable.

Hi Francois,

On Thu, Apr 21, 2016 at 11:18 AM, Francois Beaufort
<[email protected]> wrote:
> ---
> profiles/audio/avrcp.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c
> index 37bc291..70c184b 100644
> --- a/profiles/audio/avrcp.c
> +++ b/profiles/audio/avrcp.c
> @@ -3112,7 +3112,7 @@ static gboolean avrcp_get_total_numberofitems_rsp(struct avctp *conn,
> struct avrcp *session = user_data;
> struct avrcp_player *player = session->controller->player;
> struct media_player *mp = player->user_data;
> - uint32_t num_of_items;
> + uint32_t num_of_items = 0;
>
> if (pdu == NULL)
> return -ETIMEDOUT;
> --
> 2.7.0

Applied, thanks.

--
Luiz Augusto von Dentz

2016-04-21 08:18:49

by François Beaufort

[permalink] [raw]
Subject: [PATCH BlueZ] Fix bluez build break by initializing variable.

---
profiles/audio/avrcp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c
index 37bc291..70c184b 100644
--- a/profiles/audio/avrcp.c
+++ b/profiles/audio/avrcp.c
@@ -3112,7 +3112,7 @@ static gboolean avrcp_get_total_numberofitems_rsp(struct avctp *conn,
struct avrcp *session = user_data;
struct avrcp_player *player = session->controller->player;
struct media_player *mp = player->user_data;
- uint32_t num_of_items;
+ uint32_t num_of_items = 0;

if (pdu == NULL)
return -ETIMEDOUT;
--
2.7.0