ipacm: KW fix
Initialize pointer before use to fix KW issue.
Change-Id: I023d67c13528c33e625d60e030952b0377b5fd27
diff --git a/ipacm/src/IPACM_OffloadManager.cpp b/ipacm/src/IPACM_OffloadManager.cpp
index 4fd6980..34c945b 100644
--- a/ipacm/src/IPACM_OffloadManager.cpp
+++ b/ipacm/src/IPACM_OffloadManager.cpp
@@ -794,7 +794,7 @@
int IPACM_OffloadManager::push_iface_up(const char * if_name, bool upstream)
{
ipacm_cmd_q_data evt_data;
- ipacm_event_data_fid *data_fid;
+ ipacm_event_data_fid *data_fid = NULL;
ipacm_event_data_mac *data = NULL;
int index;
@@ -867,7 +867,7 @@
evt_data.event = IPA_WLAN_STA_LINK_UP_EVENT;
evt_data.evt_data = data;
IPACMDBG_H("Posting IPA_WLAN_STA_LINK_UP_EVENT with if index: %d\n",
- data_fid->if_index);
+ data->if_index);
IPACM_EvtDispatcher::PostEvt(&evt_data);
}