projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb96d02
)
src/io/sink_apple_audio.c: avoid crash on empty file name
author
Paul Brossier
<piem@piem.org>
Wed, 30 Nov 2016 14:38:29 +0000
(15:38 +0100)
committer
Paul Brossier
<piem@piem.org>
Wed, 30 Nov 2016 14:38:29 +0000
(15:38 +0100)
src/io/sink_apple_audio.c
patch
|
blob
|
history
diff --git
a/src/io/sink_apple_audio.c
b/src/io/sink_apple_audio.c
index
c7e99fc
..
f83c3da
100644
(file)
--- a/
src/io/sink_apple_audio.c
+++ b/
src/io/sink_apple_audio.c
@@
-63,7
+63,7
@@
aubio_sink_apple_audio_t * new_aubio_sink_apple_audio(const char_t * uri, uint_t
s->max_frames = MAX_SIZE;
s->async = false;
- if (
uri == NULL
) {
+ if (
(uri == NULL) || (strlen(uri) < 1)
) {
AUBIO_ERROR("sink_apple_audio: Aborted opening null path\n");
goto beach;
}