Module Name:    src
Committed By:   dholland
Date:           Sun Aug 30 04:02:06 UTC 2015

Modified Files:
        src/sys/dev/ic: sgec.c

Log Message:
Initialize uninitialized variable; from maxv's brainy list. Fixes slipup
in -r1.30 back in 2007.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/dev/ic/sgec.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ic/sgec.c
diff -u src/sys/dev/ic/sgec.c:1.40 src/sys/dev/ic/sgec.c:1.41
--- src/sys/dev/ic/sgec.c:1.40	Thu Oct 24 13:15:12 2013
+++ src/sys/dev/ic/sgec.c	Sun Aug 30 04:02:06 2015
@@ -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 <sys/cdefs.h>
-__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)) {

Reply via email to