In icp_init(), initialise the "state" variable before incrementing it.

This commit is contained in:
simonb 2002-10-22 01:25:28 +00:00
parent cb118faff0
commit 3e8b9bad9e
1 changed files with 3 additions and 2 deletions

View File

@ -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 <sys/cdefs.h>
__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 <sys/param.h>
#include <sys/systm.h>
@ -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;