luci-0.10: merge r7932
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 13 Nov 2011 22:01:19 +0000 (22:01 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 13 Nov 2011 22:01:19 +0000 (22:01 +0000)
contrib/package/iwinfo/src/iwinfo_nl80211.c

index a27ed02..d00d26b 100644 (file)
@@ -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)