From 9606ef23d5ca9676784ba103a2f87f033c46fad9 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Tue, 23 Sep 2008 20:45:28 +0000 Subject: Plug more uninitialized variables. --- sys/arch/macppc/pci/vgafb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/arch/macppc/pci') diff --git a/sys/arch/macppc/pci/vgafb.c b/sys/arch/macppc/pci/vgafb.c index 01388b1452a..7b8573ed282 100644 --- a/sys/arch/macppc/pci/vgafb.c +++ b/sys/arch/macppc/pci/vgafb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vgafb.c,v 1.34 2008/01/23 16:37:57 jsing Exp $ */ +/* $OpenBSD: vgafb.c,v 1.35 2008/09/23 20:45:27 miod Exp $ */ /* $NetBSD: vga.c,v 1.3 1996/12/02 22:24:54 cgd Exp $ */ /* @@ -383,6 +383,8 @@ vgafb_mmap(void *v, off_t offset, int prot) case WSDISPLAYIO_MODE_DUMBFB: if (offset >= 0x00000 && offset < vc->memsize) h = vc->vc_paddr + offset; + else + h = -1; break; } -- cgit v1.2.3