On Mon, Jan 17, 2011 at 11:04:50PM -0500, Trevor Woerner wrote: > From: Trevor Woerner <[email protected]> > > When compiling gcc warns: > > 'rc' may be used uninitialized in this function > > which is plausible if none of the "if/else" cases are matched. > > Signed-off-by: Trevor Woerner <[email protected]> > --- > src/xf86Aiptek.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/src/xf86Aiptek.c b/src/xf86Aiptek.c > index f128fa0..d9a7665 100644 > --- a/src/xf86Aiptek.c > +++ b/src/xf86Aiptek.c > @@ -1808,7 +1808,7 @@ xf86AiptekInit(InputDriverPtr drv, > InputInfoPtr pInfos; > char* s; > int shared; > - int rc; > + int rc = BadValue; > > aiptekDrv = drv; > > -- > 1.7.4.rc1.3.gbc2d1 > Reviewed-by: Peter Hutterer <[email protected]>
please push this to the repo, thanks. Cheers, Peter _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
