]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/TianoTools/GenDepex/GenDepex.c
Added code to clear "Buffer" before using it. This is supposed to fix the odd issue...
[mirror_edk2.git] / Tools / Source / TianoTools / GenDepex / GenDepex.c
index 3adde2c1fcf35c47c70de4d0c096e317f7860b57..3818649330555051e951ae5883c11833d6b76d13 100644 (file)
@@ -374,6 +374,7 @@ Returns:
     return EFI_ABORTED;\r
   }\r
 \r
+  memset (Buffer, 0, FileSize + BUFFER_SIZE);\r
   fread (Buffer, FileSize, 1, InFile);\r
 \r
   Ptrx    = Buffer;\r