summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaveen Rawat <naveenrawat@codeaurora.org>2017-02-17 14:38:49 -0800
committerqcabuildsw <qcabuildsw@localhost>2017-02-17 17:35:58 -0800
commit7e7f730b893e8eaab90bdff428240778c16009d9 (patch)
treedf24f69ed362151873b8ada44581284aa16a94ba
parent4dd854045805998079d521237b347422d7a79763 (diff)
qcacld-3.0: Fix uninitialized usage
In function sme_get_beacon_frm, result_handle maybe used uninitialized. Fix this by initializing result_handle with NULL value. Change-Id: Ia1437b6adf1bbcfe7d2d87b42a252e4a0ee6f5ea CRs-Fixed: 2008665
-rw-r--r--core/sme/src/common/sme_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c
index 99b35ce8e2a4..7c476cfe12db 100644
--- a/core/sme/src/common/sme_api.c
+++ b/core/sme/src/common/sme_api.c
@@ -17339,7 +17339,7 @@ QDF_STATUS sme_get_beacon_frm(tHalHandle hal, tCsrRoamProfile *profile,
uint8_t **frame_buf, uint32_t *frame_len)
{
QDF_STATUS status = QDF_STATUS_SUCCESS;
- tScanResultHandle result_handle;
+ tScanResultHandle result_handle = NULL;
tCsrScanResultFilter *scan_filter;
tpAniSirGlobal mac_ctx = PMAC_STRUCT(hal);
tSirBssDescription *bss_descp;