mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-05 20:56:12 +02:00
efi_loader: initialize 'total' variable
This variable might end up being uninitialized if we exit early. Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
97d6a2e3fe
commit
e80baf06af
@ -1133,7 +1133,7 @@ efi_status_t efi_bootmgr_update_media_device_boot_option(void)
|
||||
{
|
||||
u32 i;
|
||||
efi_status_t ret;
|
||||
efi_uintn_t count, num, total;
|
||||
efi_uintn_t count, num, total = 0;
|
||||
efi_handle_t *handles = NULL;
|
||||
struct eficonfig_media_boot_option *opt = NULL;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user