diff options
author | 2005-12-10 15:43:11 +0000 | |
---|---|---|
committer | 2005-12-10 15:43:11 +0000 | |
commit | 4295ccf8b846f6406a124df1d88975173cb0827b (patch) | |
tree | 178e678324e2dd122f50c6affaa9fa89a61b40c2 /sys/dev/ic/ath.c | |
parent | C99 section 6.8.6.4 says "A return statement with an expression shall (diff) | |
download | wireguard-openbsd-4295ccf8b846f6406a124df1d88975173cb0827b.tar.xz wireguard-openbsd-4295ccf8b846f6406a124df1d88975173cb0827b.zip |
Initialize flags before using it. Spotted by lint.
ok reyk@
Diffstat (limited to 'sys/dev/ic/ath.c')
-rw-r--r-- | sys/dev/ic/ath.c | 4 |
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) { |