[PATCH] wpa_supplicant: fix compile warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"85ca13ebcf15 wpa_cli: Add all_bss command to print all scan results (BSS entries)"
introduced a few compile warnings. Squash them by
initializing the variables.

Signed-off-by: Thomas Pedersen <thomas@xxxxxxxxxxxx>
---
 wpa_supplicant/wpa_cli.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c
index f5b02f662274..1aacaa1f4f3a 100644
--- a/wpa_supplicant/wpa_cli.c
+++ b/wpa_supplicant/wpa_cli.c
@@ -3082,6 +3082,7 @@ static int wpa_ctrl_command_bss(struct wpa_ctrl *ctrl, const char *cmd)
 	if (os_memcmp(buf, "FAIL", 4) == 0)
 		return -1;
 
+	bssid = freq = level = flags = ssid = NULL;
 	pos = buf;
 	while (*pos != '\0') {
 		if (str_starts(pos, "id="))
-- 
2.20.1


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux