]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/Universal/DevicePathDxe/DevicePathFromText.c:
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 30 Oct 2007 00:36:55 +0000 (00:36 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 30 Oct 2007 00:36:55 +0000 (00:36 +0000)
  Pre-initialize local variable 'Digit' in two functions to
  prevent a compiler warning.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4239 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/DevicePathDxe/DevicePathFromText.c

index d76a720fefd07936c8eab7e48940545f8df97bd3..db93c6daa123b7011669c4cc11e467eb5f696924 100644 (file)
@@ -355,6 +355,8 @@ HexStringToBuf (
   UINT8       Digit;\r
   UINT8       Byte;\r
 \r
+  Digit = 0;\r
+\r
   //\r
   // Find out how many hex characters the string has.\r
   //\r
@@ -694,6 +696,8 @@ StrToBuf (
   UINT8       Digit;\r
   UINT8       Byte;\r
 \r
+  Digit = 0;\r
+\r
   //\r
   // Two hex char make up one byte\r
   //\r