summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 07a09d2)
raw | patch | inline | side by side (parent: 07a09d2)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Wed, 3 Aug 2016 17:10:04 +0000 (19:10 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Wed, 3 Aug 2016 17:10:04 +0000 (19:10 +0200) |
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.
madwifi.c:608:2: warning: Function call argument is an uninitialized
value
ssnprintf (buf, bufsize, "%02x:%02x:%02x:%02x:%02x:%02x",
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
src/madwifi.c | patch | blob | history |
diff --git a/src/madwifi.c b/src/madwifi.c
index 753ad16772f89cc64de0b967a88e7b04cf7a5086..19ece7fec7d318f5533b929beeba147706336d5b 100644 (file)
--- a/src/madwifi.c
+++ b/src/madwifi.c
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;