From: Paul Brossier Date: Wed, 5 Oct 2016 09:45:36 +0000 (+0200) Subject: src/io/source_wavread.c: initialize buffer X-Git-Tag: 0.4.4~161 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=cfddab93bb46d44d4d007bbcadac4e46d69b2be7;p=aubio.git src/io/source_wavread.c: initialize buffer --- 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) {