fix -Wmaybe-uninitialized warning
All previous cases not hit, which means no scan was possible. Indicate that. Signed-off-by: Andre Heider <a.heider@gmail.com>
This commit is contained in:
parent
5469898e8b
commit
ebd5f84955
1 changed files with 2 additions and 0 deletions
|
@ -2899,6 +2899,8 @@ static int nl80211_get_scanlist(const char *ifname, char *buf, int *len)
|
||||||
iwinfo_ifup(ifname);
|
iwinfo_ifup(ifname);
|
||||||
nl80211_hostapd_hup(ifname);
|
nl80211_hostapd_hup(ifname);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
rv = -1;
|
||||||
|
|
||||||
nl80211_ifdel(res);
|
nl80211_ifdel(res);
|
||||||
return rv;
|
return rv;
|
||||||
|
|
Loading…
Reference in a new issue