From: jsg Date: Thu, 15 Oct 2015 01:14:33 +0000 (+0000) Subject: avoid using a var uninitialised X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7be63962761a05302eab472dfaeb8722f0771868;p=openbsd avoid using a var uninitialised ok jung@ --- 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);