mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
P2P: Avoid compiler warning in p2p_supplicant.c
Initialize flag variable explicitly to avoid [-Wmaybeuninitialized] compiler warning in wpas_p2p_verify_channel(). Signed-hostap: Max Stepanov <Max.Stepanov@intel.com>
This commit is contained in:
parent
5479ff906c
commit
cbf21c7cb5
@ -3461,7 +3461,7 @@ static enum chan_allowed wpas_p2p_verify_channel(struct wpa_supplicant *wpa_s,
|
||||
struct hostapd_hw_modes *mode,
|
||||
u8 channel, u8 bw)
|
||||
{
|
||||
int flag;
|
||||
int flag = 0;
|
||||
enum chan_allowed res, res2;
|
||||
|
||||
res2 = res = has_channel(wpa_s->global, mode, channel, &flag);
|
||||
|
Loading…
Reference in New Issue
Block a user