]> git.ipfire.org Git - thirdparty/hostap.git/commit
Make a code path easier for static analyzers to understand
authorJouni Malinen <j@w1.fi>
Sat, 7 Jun 2014 12:37:31 +0000 (15:37 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 7 Jun 2014 12:37:31 +0000 (15:37 +0300)
commitbc32bb70d7aa53f61f261dab88fdc417b6567d9a
tree99403caca0909fb89336721a76ca6443aa706071
parent9a921f9a84f44510751b0d11a83a8115d067f3dc
Make a code path easier for static analyzers to understand

prev cannot be NULL here in the hostapd_eid_country_add() call since
prev is set whenever start becomes non-NULL. That seems to be a bit too
difficult for some static analyzers, so check the prev pointer
explicitly to avoid false warnings.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/beacon.c