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/ipmid-new.cpp b/ipmid-new.cpp
index 6740c65..b507cb3 100644
--- a/ipmid-new.cpp
+++ b/ipmid-new.cpp
@@ -769,7 +769,7 @@
     boost::asio::spawn(*getIoContext(), [b = std::move(b)](
                                             boost::asio::yield_context yield) {
         sdbusplus::message::message m{std::move(b)};
-        unsigned char seq, netFn, lun, cmd;
+        unsigned char seq = 0, netFn = 0, lun = 0, cmd = 0;
         std::vector<uint8_t> data;
 
         m.read(seq, netFn, lun, cmd, data);
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");