[syslinux] [PATCH] hdt: clear memtest_label

Sebastian Herbszt
Wed, 08 Apr 2009 19:08:14 -0000

Clear memtest_label in init_hardware().

- Sebastian

Index: syslinux-3.74-pre20/com32/hdt/hdt-common.c
==================================================================---
syslinux-3.74-pre20.orig/com32/hdt/hdt-common.c
+++ syslinux-3.74-pre20/com32/hdt/hdt-common.c
@@ -101,6 +101,7 @@ void init_hardware(struct s_hardware *ha
   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");