summaryrefslogtreecommitdiff
path: root/sys/dev/wscons/wsmux.c
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2001-02-02 08:08:18 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2001-02-02 08:08:18 +0000
commit86ec1982657db9cfb78b45fd3985758b70532101 (patch)
tree831ad6719b54ab9c33d04e42c55f32301cf13853 /sys/dev/wscons/wsmux.c
parent08b09232a17c9b68a6dccf9b4687f6453ae248ea (diff)
Fix an uninitialized variable; henric@aimnet.com
Diffstat (limited to 'sys/dev/wscons/wsmux.c')
-rw-r--r--sys/dev/wscons/wsmux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/wscons/wsmux.c b/sys/dev/wscons/wsmux.c
index eb7afb05428..88ff158c43b 100644
--- a/sys/dev/wscons/wsmux.c
+++ b/sys/dev/wscons/wsmux.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsmux.c,v 1.4 2001/02/01 05:56:14 aaron Exp $ */
+/* $OpenBSD: wsmux.c,v 1.5 2001/02/02 08:08:17 aaron Exp $ */
/* $NetBSD: wsmux.c,v 1.9 2000/05/28 10:33:14 takemura Exp $ */
/*
@@ -109,7 +109,7 @@ void
wsmux_setmax(n)
int n;
{
- int i;
+ int i = 0;
struct wsmux_softc **wsmuxdevs_tmp = NULL;
if (n >= nwsmux) {
@@ -118,7 +118,7 @@ wsmux_setmax(n)
M_DEVBUF, M_NOWAIT);
if (wsmuxdevs_tmp == 0)
panic("wsmux_setmax: no mem\n");
- for (i = 0; i < nwsmux; i++)
+ for (; i < nwsmux; i++)
wsmuxdevs_tmp[i] = wsmuxdevs[i];
free(wsmuxdevs, M_DEVBUF);
}