summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2005-12-10 15:43:12 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2005-12-10 15:43:12 +0000
commit1b1f417f856247457a17d62517917af932e0b180 (patch)
tree33228377eb303f3eec55d26ec14364b057062cd2
parentefe642a8c606e1fb14f6f74d34b44d175486110a (diff)
Initialize flags before using it. Spotted by lint.
ok reyk@
-rw-r--r--sys/dev/ic/ath.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/ath.c b/sys/dev/ic/ath.c
index a400e8d34a7..6c29d3729ff 100644
--- a/sys/dev/ic/ath.c
+++ b/sys/dev/ic/ath.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ath.c,v 1.43 2005/11/11 14:11:40 reyk Exp $ */
+/* $OpenBSD: ath.c,v 1.44 2005/12/10 15:43:11 krw Exp $ */
/* $NetBSD: ath.c,v 1.37 2004/08/18 21:59:39 dyoung Exp $ */
/*-
@@ -1297,7 +1297,7 @@ ath_beacon_alloc(struct ath_softc *sc, struct ieee80211_node *ni)
int error;
u_int8_t rate;
const HAL_RATE_TABLE *rt;
- u_int flags;
+ u_int flags = 0;
bf = sc->sc_bcbuf;
if (bf->bf_m != NULL) {