]> git.ipfire.org Git - thirdparty/hostap.git/commit
Make get_mode() easier for static analyzers
authorJouni Malinen <jouni@codeaurora.org>
Thu, 30 Sep 2021 15:23:26 +0000 (18:23 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 30 Sep 2021 15:23:26 +0000 (18:23 +0300)
commit857c4dfa8388472012806dd48dfa58d9bb31524d
tree1f75d11ba590abc2434ee9ddda07da1158a2e96e
parent9e46b31273a3e29f6e7f57fa517a980eca2f9713
Make get_mode() easier for static analyzers

Add an explicit check for modes != NULL instead of depending on
num_modes > 0 implying that. This is to silence invalid static analyzer
reports.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
wpa_supplicant/wpa_supplicant.c