public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [patch] Nt32Pkg: Fix VS2010/VS2012 build failure
@ 2016-09-06  5:29 Dandan Bi
  2016-09-06  5:31 ` Dong, Eric
  0 siblings, 1 reply; 2+ messages in thread
From: Dandan Bi @ 2016-09-06  5:29 UTC (permalink / raw)
  To: edk2-devel; +Cc: Eric Dong

Initialize the variable "OptionNumber".

Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
---
 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



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-09-06  5:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-06  5:29 [patch] Nt32Pkg: Fix VS2010/VS2012 build failure Dandan Bi
2016-09-06  5:31 ` Dong, Eric

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox