From: Srishti Piplani Date: Mon, 11 Feb 2019 09:09:13 +0000 (+0530) Subject: [RAMEN9610-12053][common][9610]wlbt: Prevent issue in class RttCommand in rtt.cpp X-Git-Tag: MMI-QSBS30.62-17-8~20 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c9af5606ec02f221b9ed945b929a1c29790f678b;p=GitHub%2FMotorolaMobilityLLC%2Fhardware-samsung_slsi-scsc_wifibt-wifi_hal.git [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 --- 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;