From 7be63962761a05302eab472dfaeb8722f0771868 Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 15 Oct 2015 01:14:33 +0000 Subject: [PATCH] avoid using a var uninitialised ok jung@ --- sys/dev/isa/asmc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/isa/asmc.c b/sys/dev/isa/asmc.c index e8c25e30e94..147fbe6cb76 100644 --- a/sys/dev/isa/asmc.c +++ b/sys/dev/isa/asmc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: asmc.c,v 1.10 2015/10/10 12:05:47 jung Exp $ */ +/* $OpenBSD: asmc.c,v 1.11 2015/10/15 01:14:33 jsg Exp $ */ /* * Copyright (c) 2015 Joerg Jung * @@ -514,6 +514,7 @@ asmc_motions(struct asmc_softc *sc, uint8_t *n) int i; *n = 0; + s = 0; if (asmc_try(sc, ASMC_READ, "MOCN", buf, 2) && (s = asmc_status(sc)) != ASMC_NOTFOUND) { printf(", read MOCN failed (0x%x)", s); -- 2.20.1