summaryrefslogtreecommitdiff
path: root/package/network/utils/iwinfo/src
diff options
context:
space:
mode:
Diffstat (limited to 'package/network/utils/iwinfo/src')
-rw-r--r--package/network/utils/iwinfo/src/iwinfo_nl80211.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/network/utils/iwinfo/src/iwinfo_nl80211.c b/package/network/utils/iwinfo/src/iwinfo_nl80211.c
index 304a18b3ec..763ed61c97 100644
--- a/package/network/utils/iwinfo/src/iwinfo_nl80211.c
+++ b/package/network/utils/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;