From c44b9f1811822e03744ccd6f3e4b4616de9228ab Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Sat, 28 Jul 2007 17:46:04 +0000 Subject: [PATCH] Fix acpidump(8) on ia64. Revision 1.13 introduced an uninitialized variable bug that's hidden by the precense of the hint_acpi_0_rsdp hint on 386 and amd64. There's never a need for such hint on ia64. Approved by: re (kensmith) --- usr.sbin/acpi/acpidump/acpi_user.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.sbin/acpi/acpidump/acpi_user.c b/usr.sbin/acpi/acpidump/acpi_user.c index 617470c2f72a..d9d9c2417dbc 100644 --- a/usr.sbin/acpi/acpidump/acpi_user.c +++ b/usr.sbin/acpi/acpidump/acpi_user.c @@ -166,6 +166,8 @@ acpi_find_rsd_ptr(void) acpi_user_init(); + addr = 0; + /* Attempt to use kenv or sysctl to find RSD PTR record. */ if (kenv(KENV_GET, hint_acpi_0_rsdp, buf, 20) == 0) addr = strtoul(buf, NULL, 0);