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:
Max Stepanov 2014-02-10 12:55:05 +02:00 committed by Jouni Malinen
parent 5479ff906c
commit cbf21c7cb5

View file

@ -3461,7 +3461,7 @@ static enum chan_allowed wpas_p2p_verify_channel(struct wpa_supplicant *wpa_s,
struct hostapd_hw_modes *mode, struct hostapd_hw_modes *mode,
u8 channel, u8 bw) u8 channel, u8 bw)
{ {
int flag; int flag = 0;
enum chan_allowed res, res2; enum chan_allowed res, res2;
res2 = res = has_channel(wpa_s->global, mode, channel, &flag); res2 = res = has_channel(wpa_s->global, mode, channel, &flag);