hdt: clear memtest_label syslinux-3.74-pre21
authorSebastian Herbszt <herbszt@gmx.de>
Wed, 8 Apr 2009 19:08:14 +0000 (21:08 +0200)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 8 Apr 2009 23:21:37 +0000 (16:21 -0700)
Clear memtest_label in init_hardware().

com32/hdt/hdt-common.c

index 12dc22a..6c2e1e4 100644 (file)
@@ -101,6 +101,7 @@ void init_hardware(struct s_hardware *hardware)
   memset(hardware->pciids_path, 0, sizeof hardware->pciids_path);
   memset(hardware->modules_pcimap_path, 0,
          sizeof hardware->modules_pcimap_path);
+  memset(hardware->memtest_label, 0, sizeof hardware->memtest_label);
   strcat(hardware->pciids_path, "pci.ids");
   strcat(hardware->modules_pcimap_path, "modules.pcimap");
   strcat(hardware->memtest_label, "memtest");