From 3e8b9bad9ef11ef7c81b9089adf34b1398f2357d Mon Sep 17 00:00:00 2001 From: simonb Date: Tue, 22 Oct 2002 01:25:28 +0000 Subject: [PATCH] In icp_init(), initialise the "state" variable before incrementing it. --- sys/dev/ic/icp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/dev/ic/icp.c b/sys/dev/ic/icp.c index eaa1630513e7..829e747b7eeb 100644 --- a/sys/dev/ic/icp.c +++ b/sys/dev/ic/icp.c @@ -1,4 +1,4 @@ -/* $NetBSD: icp.c,v 1.4 2002/09/27 15:37:17 provos Exp $ */ +/* $NetBSD: icp.c,v 1.5 2002/10/22 01:25:28 simonb Exp $ */ /*- * Copyright (c) 2002 The NetBSD Foundation, Inc. @@ -76,7 +76,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: icp.c,v 1.4 2002/09/27 15:37:17 provos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: icp.c,v 1.5 2002/10/22 01:25:28 simonb Exp $"); #include #include @@ -117,6 +117,7 @@ icp_init(struct icp_softc *icp, const char *intrstr) u_int16_t cdev_cnt; int i, j, state, feat, nsegs, rv, noscsi, nocache; + state = 0; noscsi = 0; nocache = 0;