projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be94d24
)
[io] remove useless check in source_sndfile
author
Paul Brossier
<piem@piem.org>
Sun, 16 Dec 2018 19:51:20 +0000
(20:51 +0100)
committer
Paul Brossier
<piem@piem.org>
Sun, 16 Dec 2018 19:51:20 +0000
(20:51 +0100)
src/io/source_sndfile.c
patch
|
blob
|
history
diff --git
a/src/io/source_sndfile.c
b/src/io/source_sndfile.c
index
eea2ffc
..
7fc68c0
100644
(file)
--- 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);