]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmulatorPkg/Unix/Host/PosixFileSystem.c
EmulatorPkg/PosixFileSystem: Add NULL check on memory allocation
[mirror_edk2.git] / EmulatorPkg / Unix / Host / PosixFileSystem.c
index ae3fe72a05d40f37dc2e028d8baf9ef061678783..b69d3d5520558168375079a65e4bf69a6758effd 100644 (file)
@@ -1187,7 +1187,7 @@ PosixFileSetInfo (
   }\r
 \r
   OldFileName = malloc (AsciiStrSize (PrivateFile->FileName));\r
-  if (OldFileInfo == NULL) {\r
+  if (OldFileName == NULL) {\r
     goto Done;\r
   }\r
 \r