From 34d4232cb493709ac70de72335d28e24fec95c1a Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 26 Oct 2018 12:51:58 +0200 Subject: [PATCH] [pitchshift] make sure rb is set to null first --- src/effects/pitchshift_rubberband.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/effects/pitchshift_rubberband.c b/src/effects/pitchshift_rubberband.c index 6756b73c..d58e6222 100644 --- a/src/effects/pitchshift_rubberband.c +++ b/src/effects/pitchshift_rubberband.c @@ -48,6 +48,7 @@ new_aubio_pitchshift (const char_t * mode, p->samplerate = samplerate; p->hopsize = hopsize; p->pitchscale = 1.; + p->rb = NULL; if ((sint_t)hopsize <= 0) { AUBIO_ERR("pitchshift: hop_size should be >= 0, got %d\n", hopsize); goto beach; -- 2.11.0