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;