mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-07-09 08:41:20 +00:00
Initialize entries before we pass it to another function.
Coverity scan noticed that entries is uninitialized when we pass its location to another function. Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
parent
af25679e16
commit
4dbef508ab
@ -415,7 +415,7 @@ simple_file_selector(EFI_HANDLE *im, CHAR16 **title, CHAR16 *name,
|
|||||||
CHAR16 *filter, CHAR16 **result)
|
CHAR16 *filter, CHAR16 **result)
|
||||||
{
|
{
|
||||||
EFI_STATUS status;
|
EFI_STATUS status;
|
||||||
CHAR16 **entries;
|
CHAR16 **entries = NULL;
|
||||||
EFI_FILE_INFO *dmp;
|
EFI_FILE_INFO *dmp;
|
||||||
int count, select, len;
|
int count, select, len;
|
||||||
CHAR16 *newname, *selected;
|
CHAR16 *newname, *selected;
|
||||||
|
Loading…
Reference in New Issue
Block a user