From 56905e2564aaa8277e865bfce43d2c5dd8d32878 Mon Sep 17 00:00:00 2001 From: Jordan Hargrave Date: Tue, 28 Nov 2006 20:26:00 +0000 Subject: Fixed clearing arg for acpi_init_pic ok kettenis@ --- sys/dev/acpi/acpi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/acpi') diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c index 446c1b3625f..a3c4390e5fe 100644 --- a/sys/dev/acpi/acpi.c +++ b/sys/dev/acpi/acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi.c,v 1.65 2006/11/27 19:32:18 kettenis Exp $ */ +/* $OpenBSD: acpi.c,v 1.66 2006/11/28 20:25:59 jordan Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert * Copyright (c) 2005 Jordan Hargrave @@ -636,6 +636,7 @@ acpi_init_pic(struct acpi_softc *sc) if (node == 0) return; + memset(&arg, 0, sizeof(arg)); arg.type = AML_OBJTYPE_INTEGER; #if NIOAPIC > 0 arg.v_integer = 1; -- cgit v1.2.3