UefiCpuPkg/CpuDxe: Fix GCC build warning

There're uninitialized variables warning reported by GCC.
This patch will fix it. The original commit is

  c1cab54ce5

Cc: Hao Wu <hao.a.wu@intel.com>
Cc: Anthony PERARD <anthony.perard@citrix.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
This commit is contained in:
Jian J Wang 2017-09-22 09:31:19 +08:00 committed by Hao Wu
parent 09e8678380
commit 96207191fd
1 changed files with 6 additions and 2 deletions

View File

@ -802,8 +802,12 @@ RefreshGcdMemoryAttributesFromPaging (
GetCurrentPagingContext (&PagingContext);
BaseAddress = 0;
PageLength = 0;
DoUpdate = FALSE;
Capabilities = 0;
Attributes = 0;
BaseAddress = 0;
PageLength = 0;
for (Index = 0; Index < NumberOfDescriptors; Index++) {
if (MemorySpaceMap[Index].GcdMemoryType == EfiGcdMemoryTypeNonExistent) {
continue;