aboutsummaryrefslogtreecommitdiffstats
path: root/package/iwinfo/src/iwinfo_nl80211.c
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-10-29 22:15:29 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-10-29 22:15:29 +0000
commit720c9d4ce7dabc336f55949d0fa8aae0e69eb1c2 (patch)
tree92de281bce4f0d6a4b9373fa1e6489005ac55378 /package/iwinfo/src/iwinfo_nl80211.c
parentd126f267d184f7ad25f4b91602d354fb6e984c17 (diff)
downloadopenwrt-720c9d4ce7dabc336f55949d0fa8aae0e69eb1c2.tar.gz
openwrt-720c9d4ce7dabc336f55949d0fa8aae0e69eb1c2.zip
AA: iwinfo: backport r34003
git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@34004 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/iwinfo/src/iwinfo_nl80211.c')
-rw-r--r--package/iwinfo/src/iwinfo_nl80211.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/iwinfo/src/iwinfo_nl80211.c b/package/iwinfo/src/iwinfo_nl80211.c
index 304a18b3e..763ed61c9 100644
--- a/package/iwinfo/src/iwinfo_nl80211.c
+++ b/package/iwinfo/src/iwinfo_nl80211.c
@@ -41,6 +41,8 @@ static int nl80211_init(void)
goto err;
}
+ memset(nls, 0, sizeof(*nls));
+
nls->nl_sock = nl_socket_alloc();
if (!nls->nl_sock) {
err = -ENOMEM;