# HG changeset patch # User Chris Cannam # Date 1409742879 -3600 # Node ID e43186ff8854485f4985eddf55b77b589a563857 # Parent 5ad35dc275c2cff70f60df19df644da5e2440b52 Fix some uninitialised members that Coverity otherwise complains about diff -r 5ad35dc275c2 -r e43186ff8854 vamp-sdk/Plugin.h --- a/vamp-sdk/Plugin.h Thu Aug 07 20:30:36 2014 +0100 +++ b/vamp-sdk/Plugin.h Wed Sep 03 12:14:39 2014 +0100 @@ -320,8 +320,16 @@ bool hasDuration; OutputDescriptor() : // defaults for mandatory non-class-type members - hasFixedBinCount(false), hasKnownExtents(false), isQuantized(false), - sampleType(OneSamplePerStep), sampleRate(0), hasDuration(false) { } + hasFixedBinCount(false), + binCount(0), + hasKnownExtents(false), + minValue(0), + maxValue(0), + isQuantized(false), + quantizeStep(0), + sampleType(OneSamplePerStep), + sampleRate(0), + hasDuration(false) { } }; typedef std::vector OutputList; diff -r 5ad35dc275c2 -r e43186ff8854 vamp-sdk/PluginBase.h --- a/vamp-sdk/PluginBase.h Thu Aug 07 20:30:36 2014 +0100 +++ b/vamp-sdk/PluginBase.h Wed Sep 03 12:14:39 2014 +0100 @@ -193,7 +193,11 @@ std::vector valueNames; ParameterDescriptor() : // the defaults are invalid: you must set them - minValue(0), maxValue(0), defaultValue(0), isQuantized(false) { } + minValue(0), + maxValue(0), + defaultValue(0), + isQuantized(false), + quantizeStep(0) { } }; typedef std::vector ParameterList;