소스 검색

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 8 년 전
부모
커밋
1472b59d98
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;