ref: d16fbba0af7bbc3300402f2717da681ff5d4a65e
parent: be94d24836926c42e2e0ae5b2c72301f44bdab08
author: Paul Brossier <piem@piem.org>
date: Sun Dec 16 15:51:20 EST 2018
[io] remove useless check in source_sndfile
--- a/src/io/source_sndfile.c
+++ b/src/io/source_sndfile.c
@@ -86,7 +86,6 @@
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);