Fixed EDKT527 by adding a check on the file size in case of zero byte of byte

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2420 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jwang36 2007-03-06 03:28:01 +00:00
parent c6345a1321
commit ad368bfe44
1 changed files with 2 additions and 2 deletions

View File

@ -295,7 +295,8 @@ public class MakeDeps extends Task {
while (!pendingFiles.empty()) {
String src = pendingFiles.pop();
File srcFile = new File(src);
if (!srcFile.exists()) {
int fileLength = (int)srcFile.length();
if (!srcFile.exists() || fileLength == 0) {
continue;
}
//
@ -307,7 +308,6 @@ public class MakeDeps extends Task {
FileInputStream fileReader = null;
BufferedInputStream bufReader = null;
String fileContent = "";
int fileLength = (int)srcFile.length();
try {
fileReader = new FileInputStream(srcFile);