summaryrefslogtreecommitdiff
path: root/MdePkg/Library/DxeIoLibEsal
diff options
context:
space:
mode:
authorydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>2011-06-21 02:24:46 +0000
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>2011-06-21 02:24:46 +0000
commit18ad26da318b11bd6be78ea751bc07bfa6f441eb (patch)
treeab0f83d682b2c4698dd307f81df52f6a2cd4c18d /MdePkg/Library/DxeIoLibEsal
parentea203f22151c12091013ecc44794b743b2a7728a (diff)
downloadedk2-platforms-18ad26da318b11bd6be78ea751bc07bfa6f441eb.tar.xz
Initialize data before using it
Signed-off-by: ydong10 Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11869 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/DxeIoLibEsal')
-rw-r--r--MdePkg/Library/DxeIoLibEsal/IoLib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/MdePkg/Library/DxeIoLibEsal/IoLib.c b/MdePkg/Library/DxeIoLibEsal/IoLib.c
index 7bc6ff1b61..81b28ecdd9 100644
--- a/MdePkg/Library/DxeIoLibEsal/IoLib.c
+++ b/MdePkg/Library/DxeIoLibEsal/IoLib.c
@@ -38,6 +38,8 @@ IoReadWorker (
SAL_RETURN_REGS ReturnReg;
UINT64 Data;
+ Data = 0;
+
ReturnReg = EsalCall (
EFI_EXTENDED_SAL_BASE_IO_SERVICES_PROTOCOL_GUID_LO,
EFI_EXTENDED_SAL_BASE_IO_SERVICES_PROTOCOL_GUID_HI,
@@ -119,6 +121,8 @@ MmioReadWorker (
SAL_RETURN_REGS ReturnReg;
UINT64 Data;
+ Data = 0;
+
ReturnReg = EsalCall (
EFI_EXTENDED_SAL_BASE_IO_SERVICES_PROTOCOL_GUID_LO,
EFI_EXTENDED_SAL_BASE_IO_SERVICES_PROTOCOL_GUID_HI,