There're uninitialized variables warning reported by GCC.
This patch will fix it. The original commit is
c1cab54ce57c2608b8b3ea051c7041f036f21153
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>
\r
GetCurrentPagingContext (&PagingContext);\r
\r
- BaseAddress = 0;\r
- PageLength = 0;\r
+ DoUpdate = FALSE;\r
+ Capabilities = 0;\r
+ Attributes = 0;\r
+ BaseAddress = 0;\r
+ PageLength = 0;\r
+\r
for (Index = 0; Index < NumberOfDescriptors; Index++) {\r
if (MemorySpaceMap[Index].GcdMemoryType == EfiGcdMemoryTypeNonExistent) {\r
continue;\r