mirror of https://github.com/acidanthera/audk.git
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:
parent
c6345a1321
commit
ad368bfe44
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue