[PATCH btbridge 1/3] Initialise variable to avoid using it uninitialised
Daniel Axtens
dja at axtens.net
Fri Jan 15 09:37:22 AEDT 2016
Out of curiosity, how did you find this? I'm guessing inspection?
OpenBMC Patches <openbmc-patches at stwcx.xyz> writes:
> From: Cyril Bur <cyril.bur at au1.ibm.com>
>
> ---
> btbridged.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/btbridged.c b/btbridged.c
> index fe692bb..3e261a9 100644
> --- a/btbridged.c
> +++ b/btbridged.c
> @@ -489,7 +489,7 @@ static int dispatch_sd_bus(struct btbridged_context *context)
> static int dispatch_bt(struct btbridged_context *context)
> {
> int err = 0;
> - int r;
> + int r = 0;
>
> assert(context);
>
> --
> 2.6.4
>
>
> _______________________________________________
> openbmc mailing list
> openbmc at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/openbmc
More information about the openbmc
mailing list