aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/interworking.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-04-26 14:00:26 (GMT)
committerJouni Malinen <j@w1.fi>2015-04-26 14:00:26 (GMT)
commit9f390f431c47bfbde7f97425c0b5e8cf336b4701 (patch)
tree681bacd5558758966e3887cbb4851f38d1fdb4d6 /wpa_supplicant/interworking.c
parentbbe9eddce0f48d443f0d2321df40bbbb9447c2a9 (diff)
downloadhostap-9f390f431c47bfbde7f97425c0b5e8cf336b4701.zip
hostap-9f390f431c47bfbde7f97425c0b5e8cf336b4701.tar.gz
hostap-9f390f431c47bfbde7f97425c0b5e8cf336b4701.tar.bz2
Interworking: Fix network selection warning without SIM/USIM support
interworking_credentials_available_3gpp() would have left excluded2 uninitialized without INTERWORKING_3GPP in the build. This could result in a static analyzer warning within interworking_credentials_available_helper() about use of uninitialized variable. Get rid of that warning by explicitly initializing excluded2 even though this does not really result in any difference in behavior since the excluded2 value would be used only if the non-NULL is returned and that could not have been the case here without INTERWORKING_3GPP. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/interworking.c')
-rw-r--r--wpa_supplicant/interworking.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/interworking.c b/wpa_supplicant/interworking.c
index 4a39665..35885ee 100644
--- a/wpa_supplicant/interworking.c
+++ b/wpa_supplicant/interworking.c
@@ -2058,7 +2058,7 @@ static struct wpa_cred * interworking_credentials_available_helper(
int *excluded)
{
struct wpa_cred *cred, *cred2;
- int excluded1, excluded2;
+ int excluded1, excluded2 = 0;
if (disallowed_bssid(wpa_s, bss->bssid) ||
disallowed_ssid(wpa_s, bss->ssid, bss->ssid_len)) {