From 6d2fa5a1994c5896c565b29e0bdc69496a1de3e8 Mon Sep 17 00:00:00 2001 From: Srishti Piplani Date: Thu, 5 Sep 2019 15:09:23 +0530 Subject: [PATCH] [APR-1645] wlbt: Initialize variables in APF code Initialize variables in APF code Change-Id: Ifbbc1cf2f17a10d3a0625fee967c614cd01d1388 SCSC-Bug-Id: HOST-10860 Signed-off-by: Srishti Piplani Signed-off-by: Kim Gunho --- wifi_hal.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/wifi_hal.cpp b/wifi_hal.cpp index 8e5d4dc..6381949 100755 --- a/wifi_hal.cpp +++ b/wifi_hal.cpp @@ -87,14 +87,14 @@ void wifi_socket_set_local_port(struct nl_sock *sock, uint32_t port) class AndroidPktFilterCommand : public WifiCommand { private: - const u8* mProgram; - u32 mProgramLen; - u32* mVersion; + const u8* mProgram = NULL; + u32 mProgramLen = 0; + u32* mVersion = NULL; u32* mMaxLen = 0; - u32 mSourceOffset; - u8 *mHostDestination; + u32 mSourceOffset = 0; + u8 *mHostDestination = NULL; u32 mLength = 0; - int mReqType; + int mReqType = 0; public: AndroidPktFilterCommand(wifi_interface_handle handle, u32* version, u32* max_len) -- 2.20.1