summaryrefslogtreecommitdiff
path: root/libs/audiographer
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-02-20 20:36:58 +0100
committerRobin Gareus <robin@gareus.org>2016-02-20 20:36:58 +0100
commit67d99a3c5bebabfa0fd9a2fac57e33e4c52e7a68 (patch)
tree0501b0e3fedff61cd766f11cbf6d818ca72221c7 /libs/audiographer
parentf519edbe8e3196be8cf26f97119715618d123b52 (diff)
help clang static analyzer
Diffstat (limited to 'libs/audiographer')
-rw-r--r--libs/audiographer/src/general/analyser.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/audiographer/src/general/analyser.cc b/libs/audiographer/src/general/analyser.cc
index 459cd6a506..1ef55ed87b 100644
--- a/libs/audiographer/src/general/analyser.cc
+++ b/libs/audiographer/src/general/analyser.cc
@@ -35,6 +35,7 @@ Analyser::Analyser (float sample_rate, unsigned int channels, framecnt_t bufsize
//printf ("NEW ANALYSER %p r:%.1f c:%d f:%ld l%ld\n", this, sample_rate, channels, bufsize, n_samples);
assert (bufsize % channels == 0);
assert (bufsize > 1);
+ assert (_bufsize > 0);
if (channels > 0 && channels <= 2) {
using namespace Vamp::HostExt;
PluginLoader* loader (PluginLoader::getInstance ());