]> git.ipfire.org Git - thirdparty/hostap.git/commit
Interworking: Fix network selection warning without SIM/USIM support
authorJouni Malinen <j@w1.fi>
Sun, 26 Apr 2015 14:00:26 +0000 (17:00 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 26 Apr 2015 14:00:26 +0000 (17:00 +0300)
commit9f390f431c47bfbde7f97425c0b5e8cf336b4701
tree681bacd5558758966e3887cbb4851f38d1fdb4d6
parentbbe9eddce0f48d443f0d2321df40bbbb9447c2a9
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>
wpa_supplicant/interworking.c