[pitchshift] make sure rb is set to null first
authorPaul Brossier <piem@piem.org>
Fri, 26 Oct 2018 10:51:58 +0000 (12:51 +0200)
committerPaul Brossier <piem@piem.org>
Thu, 6 Dec 2018 23:33:37 +0000 (00:33 +0100)
src/effects/pitchshift_rubberband.c

index 6756b73..d58e622 100644 (file)
@@ -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;