summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MdeModulePkg/Universal/DevicePathDxe/DevicePathFromText.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/DevicePathDxe/DevicePathFromText.c b/MdeModulePkg/Universal/DevicePathDxe/DevicePathFromText.c
index d76a720fef..db93c6daa1 100644
--- a/MdeModulePkg/Universal/DevicePathDxe/DevicePathFromText.c
+++ b/MdeModulePkg/Universal/DevicePathDxe/DevicePathFromText.c
@@ -355,6 +355,8 @@ HexStringToBuf (
UINT8 Digit;
UINT8 Byte;
+ Digit = 0;
+
//
// Find out how many hex characters the string has.
//
@@ -694,6 +696,8 @@ StrToBuf (
UINT8 Digit;
UINT8 Byte;
+ Digit = 0;
+
//
// Two hex char make up one byte
//