summaryrefslogtreecommitdiff
path: root/FatPkg
diff options
context:
space:
mode:
Diffstat (limited to 'FatPkg')
-rw-r--r--FatPkg/EnhancedFatDxe/DirectoryManage.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/FatPkg/EnhancedFatDxe/DirectoryManage.c b/FatPkg/EnhancedFatDxe/DirectoryManage.c
index 8d6d15467e..f9a764d3aa 100644
--- a/FatPkg/EnhancedFatDxe/DirectoryManage.c
+++ b/FatPkg/EnhancedFatDxe/DirectoryManage.c
@@ -1441,6 +1441,8 @@ Returns:
FAT_OFILE *OFile;
FAT_DIRENT *DirEnt;
+ DirEnt = NULL;
+
FileNameLen = StrLen (FileName);
if (FileNameLen == 0) {
return EFI_INVALID_PARAMETER;