diff options
author | Dandan Bi <dandan.bi@intel.com> | 2016-09-06 13:15:21 +0800 |
---|---|---|
committer | Ruiyu Ni <ruiyu.ni@intel.com> | 2016-09-12 13:42:18 +0800 |
commit | e9fec7326ad2f27fe368c830da055d1044b18e95 (patch) | |
tree | 7ff8d8cd706ad824cc041ed697f30a491a6cfb81 /Nt32Pkg/Library | |
parent | acc3a3776dc3fb3dc900819b1ee94a6d4f9cf759 (diff) | |
download | edk2-platforms-e9fec7326ad2f27fe368c830da055d1044b18e95.tar.xz |
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>
Diffstat (limited to 'Nt32Pkg/Library')
-rw-r--r-- | Nt32Pkg/Library/PlatformBootManagerLib/PlatformBootManager.c | 2 |
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++) {
|