[PATCH btbridge 1/3] Initialise variable to avoid using it uninitialised

Cyril Bur cyril.bur at au1.ibm.com
Fri Jan 15 10:11:12 AEDT 2016


On Fri, 15 Jan 2016 09:37:22 +1100
Daniel Axtens <dja at axtens.net> wrote:

> Out of curiosity, how did you find this? I'm guessing inspection?
> 

Yep

> 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  
> _______________________________________________
> openbmc mailing list
> openbmc at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/openbmc



More information about the openbmc mailing list