[9610][7885][7872] wlbt : Wifi HAL Prevent Issue Fix.
authorMohit Ghuley <mohit.ghuley@samsung.com>
Wed, 18 Apr 2018 13:11:26 +0000 (18:41 +0530)
committerTarun Karela <t.karela@samsung.com>
Mon, 4 Jun 2018 09:40:47 +0000 (10:40 +0100)
Prevent Issue Fix for uninitialized Pointer Fields
in wifi_logger.cpp file.

Change-Id: Ibb023e9d035826a461786255ba449a30efd58995
SCSC-Bug-Id:SSB-39085
Signed-off-by: Mohit Ghuley <mohit.ghuley@samsung.com>
wifi_logger.cpp

index 8e5f420f5b6dfc32eb906b335348cbb052cfe875..a09d86489a64449360a6540da26c3249fb24d007 100755 (executable)
@@ -1002,19 +1002,19 @@ class MemoryDumpCommand: public WifiCommand
     int mBuffSize;\r
     char *mBuff;\r
     GetCmdType mType;\r
-       \r
+\r
 public:\r
     MemoryDumpCommand(wifi_interface_handle iface, wifi_firmware_memory_dump_handler handler, GetCmdType cmdtype )\r
         : WifiCommand(iface, 0), mHandler(handler), mBuffSize(0), mBuff(NULL), mType(cmdtype)\r
-    { \r
-       memset(&mHandler,0,sizeof(wifi_firmware_memory_dump_handler));\r
-       }\r
+    {\r
+        memset(&mcallback, 0, sizeof(wifi_driver_memory_dump_callbacks));\r
+    }\r
 \r
     MemoryDumpCommand(wifi_interface_handle iface, wifi_driver_memory_dump_callbacks callback, GetCmdType cmdtype)\r
         : WifiCommand(iface, 0), mcallback(callback), mBuffSize(0), mBuff(NULL), mType(cmdtype)\r
     {\r
-       memset(&mcallback,0,sizeof(wifi_driver_memory_dump_callbacks));\r
-       }\r
+        memset(&mHandler, 0, sizeof(wifi_firmware_memory_dump_handler));\r
+    }\r
 \r
      int createRequest(WifiRequest &request) {\r
         int result;\r