diff options
-rw-r--r-- | contrib/package/iwinfo/src/iwinfo_nl80211.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/package/iwinfo/src/iwinfo_nl80211.c b/contrib/package/iwinfo/src/iwinfo_nl80211.c index a27ed02e19..d00d26b0ad 100644 --- a/contrib/package/iwinfo/src/iwinfo_nl80211.c +++ b/contrib/package/iwinfo/src/iwinfo_nl80211.c @@ -452,6 +452,8 @@ static char * nl80211_phy2ifname(const char *ifname) else if (!strncmp(ifname, "radio", 5)) phyidx = atoi(&ifname[5]); + memset(nif, 0, sizeof(nif)); + if (phyidx > -1) { if ((d = opendir("/sys/class/net")) != NULL) |