diff mbox series

[1/4] wpa_supplicant: fix compile warning

Message ID 20200618061534.29646-2-thomas@adapt-ip.com
State New
Headers show
Series convert internal units to KHz | expand

Commit Message

Thomas Pedersen June 18, 2020, 6:15 a.m. UTC
"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@adapt-ip.com>
---
 wpa_supplicant/wpa_cli.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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="))