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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue