From 5abed58efcf6c739c473179255815270413a586b Mon Sep 17 00:00:00 2001 From: Joursoir Date: Mon, 13 Dec 2021 21:46:50 +0300 Subject: cmds: fix passing an uninitialized pointer --- Library/UefiShellUfmCommandLib/cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/UefiShellUfmCommandLib/cmds.c b/Library/UefiShellUfmCommandLib/cmds.c index 5aa4642..8f0b486 100644 --- a/Library/UefiShellUfmCommandLib/cmds.c +++ b/Library/UefiShellUfmCommandLib/cmds.c @@ -79,7 +79,7 @@ EFI_STATUS delete_file(EFI_SHELL_FILE_INFO *node) EFI_STATUS copy_file(CONST CHAR16 *src, CONST CHAR16 *dest) { SHELL_FILE_HANDLE dest_handle = NULL; - EFI_SHELL_FILE_INFO *list; + EFI_SHELL_FILE_INFO *list = NULL; EFI_STATUS status; CONST CHAR16 *path_last_item; CHAR16 *temp_name = NULL, *correct_dest = NULL; -- cgit v1.2.3-18-g5258