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;