Fix compile error. Non initialized variable.
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / controls / scene3d-view / gltf-loader.cpp
index d6c1d1e..52dc236 100644 (file)
@@ -106,7 +106,7 @@ bool ReadFloat( const TreeNode* node, float& num )
   }
   else if( node->GetType() == TreeNode::INTEGER )
   {
   }
   else if( node->GetType() == TreeNode::INTEGER )
   {
-    int32_t tempNum;
+    int32_t tempNum = 0;
     ReadInt( node, tempNum );
     num = static_cast<float>( tempNum );
     returnValue = true;
     ReadInt( node, tempNum );
     num = static_cast<float>( tempNum );
     returnValue = true;