From c0d7cd6599bfe11061d4ff1478f6c015b659a3ce Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 9 Jul 2012 15:35:35 -0700 Subject: [PATCH] examples/utils.c: avoid segfault when compiling without sndfile --- examples/utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/utils.c b/examples/utils.c index c891b159..83f2acd7 100644 --- a/examples/utils.c +++ b/examples/utils.c @@ -280,10 +280,11 @@ examples_common_init (int argc, char **argv) void examples_common_del (void) { - uint_t i; +#if HAVE_SNDFILE del_fvec (ibuf); del_fvec (obuf); del_fvec (woodblock); +#endif aubio_cleanup (); } -- 2.26.2