Fix static analysis (uninitialized var) warnings

Initialized variables with default value

Tested:
Build got successful

Signed-off-by: Snehalatha Venkatesh <snehalathax.v@intel.com>
Change-Id: Ied1a5e188d49e28d0b64a20ff9f31016735b82c2
diff --git a/user_channel/channel_mgmt.cpp b/user_channel/channel_mgmt.cpp
index f43741d..a1a9051 100644
--- a/user_channel/channel_mgmt.cpp
+++ b/user_channel/channel_mgmt.cpp
@@ -909,7 +909,7 @@
 
     // Collect the list of NIC interfaces connected to the BMC. Use this
     // information to only add IPMI channels that have active NIC interfaces.
-    struct ifaddrs *ifaddr, *ifa;
+    struct ifaddrs *ifaddr = nullptr, *ifa = nullptr;
     if (int err = getifaddrs(&ifaddr); err < 0)
     {
         log<level::DEBUG>("Unable to acquire network interfaces");