Fix warning generated by GCC.
authorjljusten <jljusten@65ba2f78-6c18-0410-a7b4-885970cf29fa>
Fri, 2 Oct 2009 06:40:01 +0000 (06:40 +0000)
committerjljusten <jljusten@65ba2f78-6c18-0410-a7b4-885970cf29fa>
Fri, 2 Oct 2009 06:40:01 +0000 (06:40 +0000)
These warnings seem to have been triggered by the recent change of
EFI_STATUS from INTN to UINTN.

git-svn-id: https://fat-driver2.tianocore.org/svn/fat-driver2/trunk@45 65ba2f78-6c18-0410-a7b4-885970cf29fa

FatPkg/EnhancedFatDxe/DirectoryManage.c

index d9f7ae5..7a8215e 100644 (file)
@@ -1437,6 +1437,8 @@ Returns:
   FAT_OFILE   *OFile;\r
   FAT_DIRENT  *DirEnt;\r
 \r
+  DirEnt = NULL;\r
+\r
   FileNameLen = StrLen (FileName);\r
   if (FileNameLen == 0) {\r
     return EFI_INVALID_PARAMETER;\r