Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Aug 2012 16:44:26 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r239504 - head/sys/dev/ath
Message-ID:  <201208211644.q7LGiQBa068565@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Tue Aug 21 16:44:25 2012
New Revision: 239504
URL: http://svn.freebsd.org/changeset/base/239504

Log:
  Initialise an uninitialised variable.
  
  GCC on -9 didn't pick this up; clang did.
  
  Submitted by:	David Wolfskill

Modified:
  head/sys/dev/ath/if_ath_tx_edma.c

Modified: head/sys/dev/ath/if_ath_tx_edma.c
==============================================================================
--- head/sys/dev/ath/if_ath_tx_edma.c	Tue Aug 21 16:35:14 2012	(r239503)
+++ head/sys/dev/ath/if_ath_tx_edma.c	Tue Aug 21 16:44:25 2012	(r239504)
@@ -427,7 +427,7 @@ ath_edma_tx_proc(void *arg, int npending
 	struct ath_txq *txq;
 	struct ath_buf *bf;
 	struct ieee80211_node *ni;
-	int nacked;
+	int nacked = 0;
 
 	DPRINTF(sc, ATH_DEBUG_TX_PROC, "%s: called, npending=%d\n",
 	    __func__, npending);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208211644.q7LGiQBa068565>