Cleanup Collada: make sure float array is initialised
authorGaia Clary <gaia.clary@machinimatrix.org>
Sun, 11 Mar 2018 18:51:16 +0000 (19:51 +0100)
committerGaia Clary <gaia.clary@machinimatrix.org>
Sun, 11 Mar 2018 19:59:49 +0000 (20:59 +0100)
This is just to silence a compiler warning and keeping
the code clean. The actual code never uses uninitialised
array elements.

source/blender/collada/AnimationImporter.cpp

index 5330902..0b61f7f 100644 (file)
@@ -1561,7 +1561,8 @@ Object *AnimationImporter::translate_animation_OLD(COLLADAFW::Node *node,
                        copy_m4_m4(mat, matfra);
                }
 
-               float val[4], rot[4], loc[3], scale[3];
+               float val[4] = {};
+               float rot[4], loc[3], scale[3];
 
                switch (tm_type) {
                        case COLLADAFW::Transformation::ROTATE: