[PATCH 3/7] p2p: fix of compiler warning in wpa_supplicant/p2p_supplicant.c
Ilan Peer
ilan.peer
Mon Feb 10 02:55:05 PST 2014
From: Max Stepanov <Max.Stepanov at intel.com>
Added flag variable intitialization to fix [-Wmaybeuninitialized]
compiler warning in wpas_p2p_verify_channel.
Signed-hostap: Max Stepanov <Max.Stepanov at intel.com>
---
wpa_supplicant/p2p_supplicant.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c
index 113ef83..1495ea4 100644
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -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);
--
1.7.10.4
More information about the Hostap
mailing list