diff options
Diffstat (limited to 'ShellPkg/Application/Shell')
-rw-r--r-- | ShellPkg/Application/Shell/ShellProtocol.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ShellPkg/Application/Shell/ShellProtocol.c b/ShellPkg/Application/Shell/ShellProtocol.c index 3d01283b60..403bed4516 100644 --- a/ShellPkg/Application/Shell/ShellProtocol.c +++ b/ShellPkg/Application/Shell/ShellProtocol.c @@ -1318,6 +1318,8 @@ EfiShellDeleteFileByName( SHELL_FILE_HANDLE FileHandle;
EFI_STATUS Status;
+ FileHandle = NULL;
+
//
// get a handle to the file
//
@@ -1960,6 +1962,7 @@ EfiShellFindFilesInDir( UINTN Size;
CHAR16 *TempSpot;
+ BasePath = NULL;
Status = FileHandleGetFileName(FileDirHandle, &BasePath);
if (EFI_ERROR(Status)) {
return (Status);
|