From abeb1d4ab31b287915d3baad91f46a2eafd418db Mon Sep 17 00:00:00 2001 From: Lukasz Gromanowski Date: Sun, 15 Jun 2014 09:37:24 +0200 Subject: [PATCH] Valgrind: Added constructor for KeyListT class, and added initialziation of ver member field in NIFFile class. Signed-off-by: Lukasz Gromanowski --- components/nif/niffile.cpp | 3 ++- components/nif/niffile.hpp | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/components/nif/niffile.cpp b/components/nif/niffile.cpp index 10847e8f4..84f4aacee 100644 --- a/components/nif/niffile.cpp +++ b/components/nif/niffile.cpp @@ -172,7 +172,8 @@ NIFFile::ptr NIFFile::create (const std::string &name) { return LoadedCache::cre /// Open a NIF stream. The name is used for error messages. NIFFile::NIFFile(const std::string &name, psudo_private_modifier) - : filename(name) + : ver(0) + , filename(name) { parse(); } diff --git a/components/nif/niffile.hpp b/components/nif/niffile.hpp index fbb64e4f7..bc9e99faf 100644 --- a/components/nif/niffile.hpp +++ b/components/nif/niffile.hpp @@ -161,6 +161,8 @@ struct KeyListT { unsigned int mInterpolationType; VecType mKeys; + KeyListT() : mInterpolationType(sLinearInterpolation) {} + //Read in a KeyGroup (see http://niftools.sourceforge.net/doc/nif/NiKeyframeData.html) void read(NIFStream *nif, bool force=false) {