From aa3bd363194eb955046c950bcd85d4ff437053ce Mon Sep 17 00:00:00 2001 From: christos Date: Fri, 14 Apr 2006 20:07:37 +0000 Subject: [PATCH] Coverity CID 2465: Fix uninitialized variable. XXX: cardbus_mapreg_map() never fails (even when it does not find memory). Perhaps it should? --- sys/dev/cardbus/cardbus_map.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/cardbus/cardbus_map.c b/sys/dev/cardbus/cardbus_map.c index bbf9a7ec18b1..4e00c45819d4 100644 --- a/sys/dev/cardbus/cardbus_map.c +++ b/sys/dev/cardbus/cardbus_map.c @@ -1,4 +1,4 @@ -/* $NetBSD: cardbus_map.c,v 1.18 2005/12/11 12:21:15 christos Exp $ */ +/* $NetBSD: cardbus_map.c,v 1.19 2006/04/14 20:07:37 christos Exp $ */ /* * Copyright (c) 1999 and 2000 @@ -33,7 +33,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: cardbus_map.c,v 1.18 2005/12/11 12:21:15 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: cardbus_map.c,v 1.19 2006/04/14 20:07:37 christos Exp $"); #include #include @@ -255,7 +255,7 @@ cardbus_mapreg_map(sc, func, reg, type, busflags, tagp, handlep, basep, sizep) #if rbus rbus_tag_t rbustag; #endif - bus_space_handle_t handle; + bus_space_handle_t handle = 0; bus_addr_t base; bus_size_t size; int flags;