summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormartin <martin@openbsd.org>2006-02-25 15:07:55 +0000
committermartin <martin@openbsd.org>2006-02-25 15:07:55 +0000
commitc7ac3057a9e6724d7ad7538e51caf4aeb88f6856 (patch)
tree578da25482435208df5a2494a4b80acafeaddb00 /sys
parentFix a coredump occurring when the terminal is resized while mg is (diff)
downloadwireguard-openbsd-c7ac3057a9e6724d7ad7538e51caf4aeb88f6856.tar.xz
wireguard-openbsd-c7ac3057a9e6724d7ad7538e51caf4aeb88f6856.zip
initialize rv to zero avoiding match on whatever is just next on the bus
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/mac68k/dev/if_ae_nubus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/mac68k/dev/if_ae_nubus.c b/sys/arch/mac68k/dev/if_ae_nubus.c
index 27555e43521..3649bf3fd08 100644
--- a/sys/arch/mac68k/dev/if_ae_nubus.c
+++ b/sys/arch/mac68k/dev/if_ae_nubus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ae_nubus.c,v 1.15 2006/01/05 20:27:14 miod Exp $ */
+/* $OpenBSD: if_ae_nubus.c,v 1.16 2006/02/25 15:07:55 martin Exp $ */
/* $NetBSD: if_ae_nubus.c,v 1.17 1997/05/01 18:17:16 briggs Exp $ */
/*
@@ -91,7 +91,7 @@ ae_nubus_match(parent, vcf, aux)
{
struct nubus_attach_args *na = (struct nubus_attach_args *) aux;
bus_space_handle_t bsh;
- int rv;
+ int rv = 0;
if (bus_space_map(na->na_tag, NUBUS_SLOT2PA(na->slot), NBMEMSIZE,
0, &bsh))