Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Initialize uninitialized variable; from maxv's br...
details: https://anonhg.NetBSD.org/src/rev/a49d2fdaeedb
branches: trunk
changeset: 810416:a49d2fdaeedb
user: dholland <dholland%NetBSD.org@localhost>
date: Sun Aug 30 04:02:06 2015 +0000
description:
Initialize uninitialized variable; from maxv's brainy list. Fixes slipup
in -r1.30 back in 2007.
diffstat:
sys/dev/ic/sgec.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r f82277783514 -r a49d2fdaeedb sys/dev/ic/sgec.c
--- a/sys/dev/ic/sgec.c Sun Aug 30 01:46:02 2015 +0000
+++ b/sys/dev/ic/sgec.c Sun Aug 30 04:02:06 2015 +0000
@@ -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 @@
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)) {
Home |
Main Index |
Thread Index |
Old Index