[io] remove useless check in source_sndfile
authorPaul Brossier <piem@piem.org>
Sun, 16 Dec 2018 19:51:20 +0000 (20:51 +0100)
committerPaul Brossier <piem@piem.org>
Sun, 16 Dec 2018 19:51:20 +0000 (20:51 +0100)
src/io/source_sndfile.c

index eea2ffc..7fc68c0 100644 (file)
@@ -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);