diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2000-01-31 19:48:59 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2000-01-31 19:48:59 +0000 |
commit | a9e4cdae52383e691efc78d72fa386a66fdd32a6 (patch) | |
tree | 4cf72dac0ad51769edc677eeccbd871926960107 /sys | |
parent | f0927058e9c99c1ad1c9c4986ee3c7fccdc1fb27 (diff) |
bzero() in get_event too
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/i386/i386/apm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/apm.c b/sys/arch/i386/i386/apm.c index ba2dc2cd08a..1707b0b42ed 100644 --- a/sys/arch/i386/i386/apm.c +++ b/sys/arch/i386/i386/apm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apm.c,v 1.30 2000/01/31 10:00:05 mickey Exp $ */ +/* $OpenBSD: apm.c,v 1.31 2000/01/31 19:48:58 mickey Exp $ */ /*- * Copyright (c) 1998-2000 Michael Shalayeff. All rights reserved. @@ -169,6 +169,7 @@ static int __inline apm_get_event(struct apmregs *r) { int rv; + bzero(r, sizeof(*r)); rv = apmcall(APM_GET_PM_EVENT, 0, r); #ifdef APMDEBUG if (r->bx) |