mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
ShellPkg/UefiShellLib: Check correct variable for NULL
Cc: Ruiyu Ni <ruiyu.ni@intel.com> Cc: Jaben Carsey <jaben.carsey@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Westfahl <jeff.westfahl@ni.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
This commit is contained in:
parent
b33b1055b0
commit
5220897839
@ -702,7 +702,7 @@ ShellOpenFileByName(
|
||||
// Create the directory to create the file in
|
||||
//
|
||||
FileNameCopy = AllocateCopyPool (StrSize (FileName), FileName);
|
||||
if (FileName == NULL) {
|
||||
if (FileNameCopy == NULL) {
|
||||
return (EFI_OUT_OF_RESOURCES);
|
||||
}
|
||||
PathCleanUpDirectories (FileNameCopy);
|
||||
|
Loading…
x
Reference in New Issue
Block a user