From: Jo-Philipp Wich Date: Thu, 29 Oct 2015 09:40:40 +0000 (+0100) Subject: nl80211: fix possible unitialized memory access in nl80211_get_hardware_id() X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=eeaae3d0118b7edbc6b1444343f16ec23396bf78;p=oweals%2Fiwinfo.git nl80211: fix possible unitialized memory access in nl80211_get_hardware_id() Signed-off-by: Jo-Philipp Wich --- diff --git a/iwinfo_nl80211.c b/iwinfo_nl80211.c index a65ed1e..4add5f4 100644 --- a/iwinfo_nl80211.c +++ b/iwinfo_nl80211.c @@ -2698,7 +2698,7 @@ static int nl80211_get_mbssid_support(const char *ifname, int *buf) static int nl80211_get_hardware_id(const char *ifname, char *buf) { - int rv; + int rv = -1; char *res; /* Got a radioX pseudo interface, find some interface on it or create one */