]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Nt32Pkg: Fix VS2010/VS2012 build failure
authorDandan Bi <dandan.bi@intel.com>
Tue, 6 Sep 2016 05:15:21 +0000 (13:15 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Mon, 12 Sep 2016 05:42:18 +0000 (13:42 +0800)
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>
Nt32Pkg/Library/PlatformBootManagerLib/PlatformBootManager.c

index dd67dab9ddb3be4dde6d46eada85889625d0e2d8..76d926b996bfd726e64bc9ae19464a88995fd192 100644 (file)
@@ -274,6 +274,8 @@ GetBootManagerMenuAppOption (
   UINTN                        Index;\r
   UINTN                        OptionNumber;\r
 \r
+  OptionNumber = 0;\r
+\r
   BootOptions = EfiBootManagerGetLoadOptions (&BootOptionCount, LoadOptionTypeBoot);\r
 \r
   for (Index = 0; Index < BootOptionCount; Index++) {\r