OvmfPkg: QemuBootOrder: initialize IsFinal variable to make MSVC happy
authorMauro Faccenda <faccenda@gmail.com>
Sun, 9 Feb 2014 02:01:20 +0000 (02:01 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Sun, 9 Feb 2014 02:01:20 +0000 (02:01 +0000)
The BOOLEAN IsFinal variable initialization isn't properly seen by
MSVC. To make it compile OVMF the variable needs to be initialized.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Mauro Faccenda <faccenda@gmail.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15214 6f19259b-4bc3-4df7-8a09-765794883524

OvmfPkg/Library/PlatformBdsLib/QemuBootOrder.c

index 055cee3ac440027380ea819b62abbdd26fc3c2e4..c8379b8fcacc29dfcb8c802f4fb8af82ff9fe62a 100644 (file)
@@ -872,6 +872,7 @@ TranslateOfwPath (
   BOOLEAN       IsFinal;\r
   OFW_NODE      Skip;\r
 \r
+  IsFinal = FALSE;\r
   NumNodes = 0;\r
   if (AsciiStrCmp (*Ptr, "HALT") == 0) {\r
     *Ptr += 4;\r