diff options
author | Andre Heider <a.heider@gmail.com> | 2022-11-23 14:26:41 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-12-15 20:07:49 +0100 |
commit | ebd5f84955d180b3357f7005762a6cfb42cf1b1c (patch) | |
tree | e5ad914136a6250123c151a5838209ec04fcb987 | |
parent | 5469898e8b05f8e4b5daf7e1340b17e94fe815e3 (diff) | |
download | iwinfo-ebd5f84955d180b3357f7005762a6cfb42cf1b1c.tar.gz |
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>
-rw-r--r-- | iwinfo_nl80211.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/iwinfo_nl80211.c b/iwinfo_nl80211.c index 97cd39f..0e339b5 100644 --- a/iwinfo_nl80211.c +++ b/iwinfo_nl80211.c @@ -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; |