From 6b7eee925207cbdb65e1cbf1ce0f47e351bedf00 Mon Sep 17 00:00:00 2001 From: simonb Date: Sat, 14 Aug 1999 11:40:31 +0000 Subject: [PATCH] Initialise "error" in wsmux_detach_sc() before testing if it set. --- sys/dev/wscons/wsmux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/wscons/wsmux.c b/sys/dev/wscons/wsmux.c index 8c8dd22bcc80..96baa982542b 100644 --- a/sys/dev/wscons/wsmux.c +++ b/sys/dev/wscons/wsmux.c @@ -1,4 +1,4 @@ -/* $NetBSD: wsmux.c,v 1.3 1999/08/07 15:04:35 augustss Exp $ */ +/* $NetBSD: wsmux.c,v 1.4 1999/08/14 11:40:31 simonb Exp $ */ /* * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -435,7 +435,7 @@ wsmux_detach_sc(sc, dsc) struct device *dsc; { struct wsplink *m; - int error; + int error = 0; DPRINTF(("wsmux_detach_sc: %s: dsc=%p\n", sc->sc_dv.dv_xname, dsc)); #ifdef DIAGNOSTIC