summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDandan Bi <dandan.bi@intel.com>2016-09-06 13:15:21 +0800
committerRuiyu Ni <ruiyu.ni@intel.com>2016-09-12 13:42:18 +0800
commite9fec7326ad2f27fe368c830da055d1044b18e95 (patch)
tree7ff8d8cd706ad824cc041ed697f30a491a6cfb81
parentacc3a3776dc3fb3dc900819b1ee94a6d4f9cf759 (diff)
downloadedk2-e9fec7326ad2f27fe368c830da055d1044b18e95.tar.gz
edk2-e9fec7326ad2f27fe368c830da055d1044b18e95.tar.bz2
edk2-e9fec7326ad2f27fe368c830da055d1044b18e95.zip
Nt32Pkg: Fix VS2010/VS2012 build failure
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> Reviewed-by: Eric Dong <eric.dong@intel.com>
-rw-r--r--Nt32Pkg/Library/PlatformBootManagerLib/PlatformBootManager.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Nt32Pkg/Library/PlatformBootManagerLib/PlatformBootManager.c b/Nt32Pkg/Library/PlatformBootManagerLib/PlatformBootManager.c
index dd67dab9dd..76d926b996 100644
--- a/Nt32Pkg/Library/PlatformBootManagerLib/PlatformBootManager.c
+++ b/Nt32Pkg/Library/PlatformBootManagerLib/PlatformBootManager.c
@@ -274,6 +274,8 @@ GetBootManagerMenuAppOption (
UINTN Index;
UINTN OptionNumber;
+ OptionNumber = 0;
+
BootOptions = EfiBootManagerGetLoadOptions (&BootOptionCount, LoadOptionTypeBoot);
for (Index = 0; Index < BootOptionCount; Index++) {