From e1670e5d58e6f4d6427ec5736c6b30db6119b413 Mon Sep 17 00:00:00 2001 From: Rafal Kupiec Date: Mon, 1 Jan 2024 22:00:24 +0100 Subject: [PATCH] NULLify a list of modules --- xtldr2/xtldr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xtldr2/xtldr.c b/xtldr2/xtldr.c index e1c5230..c16021f 100644 --- a/xtldr2/xtldr.c +++ b/xtldr2/xtldr.c @@ -174,8 +174,9 @@ BlInvokeBootProtocol(IN PLIST_ENTRY OptionsList) PWCHAR ModulesList; EFI_STATUS Status; - /* Initialize boot parameters */ + /* Initialize boot parameters and a list of modules */ RtlZeroMemory(&BootParameters, sizeof(XTBL_BOOT_PARAMETERS)); + ModulesList = NULL; /* Iterate through all options provided by boot menu entry and propagate boot parameters */ OptionsListEntry = OptionsList->Flink;