From c9af5606ec02f221b9ed945b929a1c29790f678b Mon Sep 17 00:00:00 2001 From: Srishti Piplani Date: Mon, 11 Feb 2019 14:39:13 +0530 Subject: [PATCH] [RAMEN9610-12053][common][9610]wlbt: Prevent issue in class RttCommand in rtt.cpp Initialized some variables in the RttCommand constructor in rtt.cpp file, to fix prevent issues. Change-Id: I52cf949a3933c5a531f50f42a80da0c1b9efb979 SCSC-Bug-Id: SSB-49330 Signed-off-by: Srishti Piplani --- rtt.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rtt.cpp b/rtt.cpp index fe94c30..9e8a67f 100755 --- a/rtt.cpp +++ b/rtt.cpp @@ -154,8 +154,10 @@ public: } RttCommand(wifi_interface_handle iface, int id) - : WifiCommand(iface, id) + : WifiCommand(iface, id), rtt_id(id), rttParams(NULL) { + rttHandler.on_rtt_results = NULL; + memset(rttResults, 0, sizeof(rttResults)); currentIdx = 0; mCompleted = 0; totalCnt = 0; -- 2.20.1