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>
This commit is contained in:
parent
bbe9eddce0
commit
9f390f431c
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue