From d16fbba0af7bbc3300402f2717da681ff5d4a65e Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 16 Dec 2018 20:51:20 +0100 Subject: [PATCH] [io] remove useless check in source_sndfile --- src/io/source_sndfile.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/io/source_sndfile.c b/src/io/source_sndfile.c index eea2ffce..7fc68c02 100644 --- a/src/io/source_sndfile.c +++ b/src/io/source_sndfile.c @@ -86,7 +86,6 @@ aubio_source_sndfile_t * new_aubio_source_sndfile(const char_t * path, uint_t sa s->hop_size = hop_size; s->channels = 1; - if (s->path) AUBIO_FREE(s->path); s->path = AUBIO_ARRAY(char_t, strnlen(path, PATH_MAX) + 1); strncpy(s->path, path, strnlen(path, PATH_MAX) + 1); -- 2.11.0