diff options
| author | Mohit Ghuley <mohit.ghuley@samsung.com> | 2018-04-18 18:41:26 +0530 |
|---|---|---|
| committer | Tarun Karela <t.karela@samsung.com> | 2018-06-04 10:40:47 +0100 |
| commit | 0f3dba802741f15fbb2c3f503a8598b6b7b563e5 (patch) | |
| tree | 60ed9b8145ee2f0246f389eabf01b990c74c5d30 | |
| parent | ce9dd140af8526e2c3df1dd243b983f082b46ce1 (diff) | |
[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>
| -rwxr-xr-x | wifi_logger.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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 @@ class MemoryDumpCommand: public WifiCommand 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;
|
