From 0d4abda40661126f0df6b2b2c08d20b35f2ca039 Mon Sep 17 00:00:00 2001 From: dholland Date: Sun, 30 Aug 2015 04:02:06 +0000 Subject: [PATCH] Initialize uninitialized variable; from maxv's brainy list. Fixes slipup in -r1.30 back in 2007. --- sys/dev/ic/sgec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/ic/sgec.c b/sys/dev/ic/sgec.c index 6d9d8bac9fc1..81ba463b898f 100644 --- a/sys/dev/ic/sgec.c +++ b/sys/dev/ic/sgec.c @@ -1,4 +1,4 @@ -/* $NetBSD: sgec.c,v 1.40 2013/10/24 13:15:12 martin Exp $ */ +/* $NetBSD: sgec.c,v 1.41 2015/08/30 04:02:06 dholland Exp $ */ /* * Copyright (c) 1999 Ludd, University of Lule}, Sweden. All rights reserved. * @@ -45,7 +45,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: sgec.c,v 1.40 2013/10/24 13:15:12 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sgec.c,v 1.41 2015/08/30 04:02:06 dholland Exp $"); #include "opt_inet.h" @@ -332,7 +332,7 @@ zestart(struct ifnet *ifp) int nexttx, starttx; int len, i, totlen, error; int old_inq = sc->sc_inq; - uint16_t orword, tdr; + uint16_t orword, tdr = 0; bus_dmamap_t map; while (sc->sc_inq < (TXDESCS - 1)) {