From: Ruben Kerkhof Date: Wed, 3 Aug 2016 17:10:04 +0000 (+0200) Subject: madwifi: fix scan-build warning X-Git-Tag: collectd-5.6.0~120 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2401fad21c3be25010b9732bef88113eb7486a02;p=collectd.git madwifi: fix scan-build warning CC madwifi.lo madwifi.c:608:2: warning: Function call argument is an uninitialized value ssnprintf (buf, bufsize, "%02x:%02x:%02x:%02x:%02x:%02x", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. --- diff --git a/src/madwifi.c b/src/madwifi.c index 753ad167..19ece7fe 100644 --- a/src/madwifi.c +++ b/src/madwifi.c @@ -752,7 +752,7 @@ process_station (int sk, const char *dev, struct ieee80211req_sta_info *si) static int process_stations (int sk, const char *dev) { - uint8_t buf[24*1024]; + uint8_t buf[24*1024] = { 0 }; uint8_t *cp; int nodes; size_t len;