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:
Andre Heider 2022-11-23 14:26:41 +01:00 committed by Jo-Philipp Wich
parent 5469898e8b
commit ebd5f84955

View file

@ -2899,6 +2899,8 @@ static int nl80211_get_scanlist(const char *ifname, char *buf, int *len)
iwinfo_ifup(ifname);
nl80211_hostapd_hup(ifname);
}
else
rv = -1;
nl80211_ifdel(res);
return rv;