From: Paul Brossier Date: Sun, 16 Dec 2018 19:51:20 +0000 (+0100) Subject: [io] remove useless check in source_sndfile X-Git-Tag: 0.4.9~88 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=d16fbba0af7bbc3300402f2717da681ff5d4a65e;p=aubio.git [io] remove useless check in source_sndfile --- 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);