Added code to clear "Buffer" before using it. This is supposed to fix the odd issue...
authorjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>
Sat, 30 Sep 2006 02:09:07 +0000 (02:09 +0000)
committerjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>
Sat, 30 Sep 2006 02:09:07 +0000 (02:09 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1648 6f19259b-4bc3-4df7-8a09-765794883524

Tools/Source/TianoTools/GenDepex/GenDepex.c

index 3adde2c..3818649 100644 (file)
@@ -374,6 +374,7 @@ Returns:
     return EFI_ABORTED;\r
   }\r
 \r
     return EFI_ABORTED;\r
   }\r
 \r
+  memset (Buffer, 0, FileSize + BUFFER_SIZE);\r
   fread (Buffer, FileSize, 1, InFile);\r
 \r
   Ptrx    = Buffer;\r
   fread (Buffer, FileSize, 1, InFile);\r
 \r
   Ptrx    = Buffer;\r