diff options
author | Robin Gareus <robin@gareus.org> | 2020-01-27 03:31:49 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-01-27 03:31:49 +0100 |
commit | fc7dd5115def88d0dd74cc038517680f050a4ded (patch) | |
tree | 48b2eb998939605fe64a6cc96acece8f3f8b3b73 /libs/vamp-plugins | |
parent | cf4d7387d2afe092bb110e1b14415fa07448ee55 (diff) |
Fix some clang-scan warnings
Diffstat (limited to 'libs/vamp-plugins')
-rw-r--r-- | libs/vamp-plugins/TruePeak.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/vamp-plugins/TruePeak.cpp b/libs/vamp-plugins/TruePeak.cpp index 3d6c12ee2a..9a9f6f93d8 100644 --- a/libs/vamp-plugins/TruePeak.cpp +++ b/libs/vamp-plugins/TruePeak.cpp @@ -18,6 +18,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#include <assert.h> #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -392,6 +393,7 @@ TruePeakdsp::process (float const *d, int n) float x = 0; float v; + assert (_buf); float *b = _buf; while (n--) { v = fabsf(*b++); |