[RAMEN9610-12053][common][9610]wlbt: Prevent issue in class RttCommand in rtt.cpp
authorSrishti Piplani <srishti.p@samsung.com>
Mon, 11 Feb 2019 09:09:13 +0000 (14:39 +0530)
committerhskang <hs1218.kang@samsung.com>
Tue, 12 Feb 2019 09:18:55 +0000 (18:18 +0900)
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 <srishti.p@samsung.com>
rtt.cpp

diff --git a/rtt.cpp b/rtt.cpp
index fe94c3073d69bf45c6ada1d206ffe0afd881127c..9e8a67fd5dc1cc45f5d040ca587e3e5f7c3303c8 100755 (executable)
--- 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;