Fix compile error. Non initialized variable. 83/242983/1
authorVictor Cebollada <v.cebollada@samsung.com>
Wed, 2 Sep 2020 08:14:22 +0000 (09:14 +0100)
committerVictor Cebollada <v.cebollada@samsung.com>
Wed, 2 Sep 2020 08:16:06 +0000 (09:16 +0100)
Change-Id: I3b65765de9797df333c32abfb9607e04910bd169
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
dali-toolkit/internal/controls/scene3d-view/gltf-loader.cpp

index d6c1d1e39b577d6c622b469a666e72d1c2645347..52dc2369a1e9e87f765bcb54a7618fd1b1a2bd34 100644 (file)
@@ -106,7 +106,7 @@ bool ReadFloat( const TreeNode* node, float& num )
   }
   else if( node->GetType() == TreeNode::INTEGER )
   {
-    int32_t tempNum;
+    int32_t tempNum = 0;
     ReadInt( node, tempNum );
     num = static_cast<float>( tempNum );
     returnValue = true;