Explorar o código

qcacld-3.0: Initialize add_ie while updating scan ie

Initialize add_ie to false to avoid the possibility of
using add_ie with random value.

Change-Id: Ic2a4dfee2961220f853e674c3dfe90707377bf24
CRs-Fixed: 2042711
Selvaraj, Sridhar %!s(int64=8) %!d(string=hai) anos
pai
achega
1472b59d98
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      core/hdd/src/wlan_hdd_scan.c

+ 1 - 1
core/hdd/src/wlan_hdd_scan.c

@@ -1452,7 +1452,7 @@ static int wlan_hdd_update_scan_ies(hdd_adapter_t *adapter,
 	uint8_t *current_ie;
 	uint8_t elem_id;
 	uint16_t elem_len;
-	bool add_ie;
+	bool add_ie = false;
 
 	if (!scan_info->default_scan_ies_len || !scan_info->default_scan_ies)
 		return 0;