Fix bug to use local variable without init value.
authorlgao4 <lgao4@7335b38e-4728-0410-8992-fb3ffe349368>
Wed, 7 Nov 2007 07:50:03 +0000 (07:50 +0000)
committerlgao4 <lgao4@7335b38e-4728-0410-8992-fb3ffe349368>
Wed, 7 Nov 2007 07:50:03 +0000 (07:50 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@871 7335b38e-4728-0410-8992-fb3ffe349368

Source/C/GenFv/GenFvInternalLib.c

index b5954d6..5cbcb1d 100644 (file)
@@ -2585,7 +2585,12 @@ Returns:
   EFI_PHYSICAL_ADDRESS  FunctionAddress;\r
   UINT32                FunctionType;\r
   CHAR8                 FunctionTypeName [MAX_LINE_LEN];\r
-\r
+  \r
+  //\r
+  // Init local variable\r
+  //\r
+  FunctionType = 0;\r
+  \r
   //\r
   // Construct Map file Name \r
   //\r
@@ -2661,15 +2666,14 @@ Returns:
         //\r
         FunctionType = 1;\r
         fgets (Line, MAX_LINE_LEN, PeMapFile);\r
-        continue;\r
       } else if (stricmp (KeyWord, "Static") == 0) {\r
         //\r
         // static function list\r
         //\r
         FunctionType = 2;\r
         fgets (Line, MAX_LINE_LEN, PeMapFile);\r
-        continue;\r
       }\r
+      continue;\r
     }\r
     //\r
     // Printf Function Information\r