aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-12-13 21:46:50 +0300
committerJoursoir <chat@joursoir.net>2021-12-13 21:46:50 +0300
commit5abed58efcf6c739c473179255815270413a586b (patch)
tree80805051f109b7d6bab4331b86e8450fd6b32619
parent8fe71800158e0da52b380ccbd758732b7f3777e4 (diff)
downloadufm-5abed58efcf6c739c473179255815270413a586b.tar.gz
ufm-5abed58efcf6c739c473179255815270413a586b.tar.bz2
ufm-5abed58efcf6c739c473179255815270413a586b.zip
cmds: fix passing an uninitialized pointer
-rw-r--r--Library/UefiShellUfmCommandLib/cmds.c2
1 files changed, 1 insertions, 1 deletions
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;