2014-06-17 07:34:07

by Andrei Emeltchenko

[permalink] [raw]
Subject: [PATCH] android/health: Fix using uninitialized value err

From: Andrei Emeltchenko <[email protected]>

---
android/health.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/android/health.c b/android/health.c
index 7e2c5d6..85100cd 100644
--- a/android/health.c
+++ b/android/health.c
@@ -242,7 +242,7 @@ static int register_service_additional_protocols(sdp_record_t *rec,
sdp_list_t *access_proto_list = NULL;
sdp_data_t *psm = NULL;
uint32_t dcpsm;
- GError *err;
+ GError *err = NULL;

DBG("");

--
1.8.3.2



2014-06-17 20:03:21

by Szymon Janc

[permalink] [raw]
Subject: Re: [PATCH] android/health: Fix using uninitialized value err

Hi Andrei,

On Tuesday 17 June 2014 10:34:07 Andrei Emeltchenko wrote:
> From: Andrei Emeltchenko <[email protected]>
>
> ---
> android/health.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/android/health.c b/android/health.c
> index 7e2c5d6..85100cd 100644
> --- a/android/health.c
> +++ b/android/health.c
> @@ -242,7 +242,7 @@ static int
> register_service_additional_protocols(sdp_record_t *rec, sdp_list_t
> *access_proto_list = NULL;
> sdp_data_t *psm = NULL;
> uint32_t dcpsm;
> - GError *err;
> + GError *err = NULL;
>
> DBG("");

Applied, thanks.

--
Szymon K. Janc
[email protected]