Reviewed-by: Eric Dong <[email protected]> > -----Original Message----- > From: Bi, Dandan > Sent: Tuesday, September 06, 2016 1:30 PM > To: [email protected] > Cc: Dong, Eric > Subject: [patch] Nt32Pkg: Fix VS2010/VS2012 build failure > > Initialize the variable "OptionNumber". > > Cc: Eric Dong <[email protected]> > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Dandan Bi <[email protected]> > --- > Nt32Pkg/Library/PlatformBootManagerLib/PlatformBootManager.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/Nt32Pkg/Library/PlatformBootManagerLib/PlatformBootManager.c > b/Nt32Pkg/Library/PlatformBootManagerLib/PlatformBootManager.c > index dd67dab..76d926b 100644 > --- a/Nt32Pkg/Library/PlatformBootManagerLib/PlatformBootManager.c > +++ b/Nt32Pkg/Library/PlatformBootManagerLib/PlatformBootManager.c > @@ -272,10 +272,12 @@ GetBootManagerMenuAppOption ( > UINTN BootOptionCount; > EFI_BOOT_MANAGER_LOAD_OPTION *BootOptions; > UINTN Index; > UINTN OptionNumber; > > + OptionNumber = 0; > + > BootOptions = EfiBootManagerGetLoadOptions (&BootOptionCount, > LoadOptionTypeBoot); > > for (Index = 0; Index < BootOptionCount; Index++) { > if (IsBootManagerMenuAppFilePath (BootOptions[Index].FilePath)) { > OptionNumber = BootOptions[Index].OptionNumber; > -- > 1.9.5.msysgit.1
_______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

