From 8d96518810ad721dc2f07d3b08a186ce23db06ff Mon Sep 17 00:00:00 2001 From: Irfan Sheriff Date: Tue, 11 Sep 2012 08:58:24 -0700 Subject: clear wfd_dev_info_hex before use Change-Id: Ic5cdb4df220834faf9e7da5cc1cc0a4191e6abd1 --- wpa_supplicant/p2p_supplicant.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c index 6dbfcdf..94efd72 100644 --- a/wpa_supplicant/p2p_supplicant.c +++ b/wpa_supplicant/p2p_supplicant.c @@ -1189,6 +1189,7 @@ void wpas_dev_found(void *ctx, const u8 *addr, char devtype[WPS_DEV_TYPE_BUFSIZE]; #define WFD_DEV_INFO_SIZE 9 char wfd_dev_info_hex[2 * WFD_DEV_INFO_SIZE + 1]; + os_memset(wfd_dev_info_hex, 0, sizeof(wfd_dev_info_hex)); #ifdef CONFIG_WIFI_DISPLAY if (info->wfd_subelems) { -- cgit v1.1