From cfddab93bb46d44d4d007bbcadac4e46d69b2be7 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 5 Oct 2016 11:45:36 +0200 Subject: [PATCH] src/io/source_wavread.c: initialize buffer --- src/io/source_wavread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io/source_wavread.c b/src/io/source_wavread.c index 6ff75e5c..814b8e75 100644 --- a/src/io/source_wavread.c +++ b/src/io/source_wavread.c @@ -76,7 +76,7 @@ static unsigned int read_little_endian (unsigned char *buf, aubio_source_wavread_t * new_aubio_source_wavread(const char_t * path, uint_t samplerate, uint_t hop_size) { aubio_source_wavread_t * s = AUBIO_NEW(aubio_source_wavread_t); size_t bytes_read = 0, bytes_junk = 0, bytes_expected = 44; - unsigned char buf[5]; + unsigned char buf[5] = "\0"; unsigned int format, channels, sr, byterate, blockalign, duration, bitspersample;//, data_size; if (path == NULL) { -- 2.11.0