> -----Original Message----- > From: Zhang, Shenglei > Sent: Wednesday, October 16, 2019 9:47 AM > To: devel@edk2.groups.io > Cc: Wu, Hao A; Ni, Ray > Subject: [PATCH 1/3] MdeModulePkg/EhciPei: Initialize the variable Map > > Map is used but not Initialized. > > Cc: Hao A Wu <hao.a...@intel.com> > Cc: Ray Ni <ray...@intel.com> > Signed-off-by: Shenglei Zhang <shenglei.zh...@intel.com> > --- > MdeModulePkg/Bus/Pci/EhciPei/EhciUrb.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/MdeModulePkg/Bus/Pci/EhciPei/EhciUrb.c > b/MdeModulePkg/Bus/Pci/EhciPei/EhciUrb.c > index 7c6a6a5f9716..995ccd2463d2 100644 > --- a/MdeModulePkg/Bus/Pci/EhciPei/EhciUrb.c > +++ b/MdeModulePkg/Bus/Pci/EhciPei/EhciUrb.c > @@ -534,6 +534,8 @@ EhcCreateUrb ( > PEI_URB *Urb; > VOID *Map; > > + Map = NULL; > +
Hello, Is this a real issue or just a false positive report by some compiler or static analyzer? If is a real issue, could you help to describe the issue in more detail? If it is a false positive report, could you help to add some comments together with the change? Thanks in advance. Best Regards, Hao Wu > Urb = Ehc->Urb; > Urb->Signature = EHC_URB_SIG; > InitializeListHead (&Urb->UrbList); > -- > 2.18.0.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#49635): https://edk2.groups.io/g/devel/message/49635 Mute This Topic: https://groups.io/mt/34556040/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-