[9610][7885][7872] wlbt : Wifi HAL Prevent Issue Fix.
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>
diff --git a/wifi_logger.cpp b/wifi_logger.cpp
index 8e5f420..a09d864 100755
--- a/wifi_logger.cpp
+++ b/wifi_logger.cpp
@@ -1002,19 +1002,19 @@
int mBuffSize;
char *mBuff;
GetCmdType mType;
-
+
public:
MemoryDumpCommand(wifi_interface_handle iface, wifi_firmware_memory_dump_handler handler, GetCmdType cmdtype )
: WifiCommand(iface, 0), mHandler(handler), mBuffSize(0), mBuff(NULL), mType(cmdtype)
- {
- memset(&mHandler,0,sizeof(wifi_firmware_memory_dump_handler));
- }
+ {
+ memset(&mcallback, 0, sizeof(wifi_driver_memory_dump_callbacks));
+ }
MemoryDumpCommand(wifi_interface_handle iface, wifi_driver_memory_dump_callbacks callback, GetCmdType cmdtype)
: WifiCommand(iface, 0), mcallback(callback), mBuffSize(0), mBuff(NULL), mType(cmdtype)
{
- memset(&mcallback,0,sizeof(wifi_driver_memory_dump_callbacks));
- }
+ memset(&mHandler, 0, sizeof(wifi_firmware_memory_dump_handler));
+ }
int createRequest(WifiRequest &request) {
int result;