[syslinux] [PATCH] hdt: clear memtest_label

Sebastian Herbszt herbszt at gmx.de
Wed Apr 8 12:08:14 PDT 2009


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");




More information about the Syslinux mailing list