summaryrefslogtreecommitdiff
path: root/FatPkg
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2009-10-02 06:40:01 +0000
committerJordan Justen <jordan.l.justen@intel.com>2016-04-06 23:22:43 -0700
commit05bcb9e8dd7da31f1b612aed4dfb3f3160abec94 (patch)
tree956b95094a07771125b980d64bf7c45523f474d1 /FatPkg
parentdba03ba1ef6fc83af55675a6f4eb36bf13791aa4 (diff)
downloadedk2-platforms-05bcb9e8dd7da31f1b612aed4dfb3f3160abec94.tar.xz
Fix warning generated by GCC.
These warnings seem to have been triggered by the recent change of EFI_STATUS from INTN to UINTN. (based on FatPkg commit c573d39c2a5627b44826d6f656452e8d097c97ff) [jordan.l.justen@intel.com: Use script to relicense to 2-clause BSD] Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Acked-by: Mark Doran <mark.doran@intel.com> Acked-by: Laszlo Ersek <lersek@redhat.com>
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;