encoding: Initialized uninitialized variables to resolve the build issue referenced

Refs: #1506

Change-Id: Icb650cf36cf50770ffec6db0f1253b1e42dadd96
diff --git a/src/encoding/block.cpp b/src/encoding/block.cpp
index 9c91aa8..0458331 100644
--- a/src/encoding/block.cpp
+++ b/src/encoding/block.cpp
@@ -238,7 +238,7 @@
   const uint8_t* tempBegin = buffer;
   const uint8_t* tempEnd = buffer + maxSize;
 
-  uint32_t type;
+  uint32_t type = 0;
   bool isOk = Tlv::readType(tempBegin, tempEnd, type);
   if (!isOk)
     return false;
diff --git a/src/encoding/tlv.hpp b/src/encoding/tlv.hpp
index 80b17b5..a255e62 100644
--- a/src/encoding/tlv.hpp
+++ b/src/encoding/tlv.hpp
@@ -226,7 +226,7 @@
 inline bool
 readType(InputIterator& begin, const InputIterator& end, uint32_t& type)
 {
-  uint64_t number;
+  uint64_t number = 0;
   bool isOk = readVarNumber(begin, end, number);
   if (!isOk || number > std::numeric_limits<uint32_t>::max())
     {