diff --git a/boot/freeldr/freeldr/oslist.c b/boot/freeldr/freeldr/oslist.c index c6fceb1e61b..528223de131 100644 --- a/boot/freeldr/freeldr/oslist.c +++ b/boot/freeldr/freeldr/oslist.c @@ -161,6 +161,7 @@ InitOperatingSystemList( if (HadSection) { /* This is a new OS entry: try to read the boot type */ + *BootType = ANSI_NULL; IniReadSettingByName(SectionId, "BootType", BootType, sizeof(BootType)); } else