projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
892c369
)
src/io/sink_apple_audio.c: avoid opening null path
author
Paul Brossier
<piem@piem.org>
Sat, 20 Sep 2014 13:24:43 +0000
(10:24 -0300)
committer
Paul Brossier
<piem@piem.org>
Sat, 20 Sep 2014 13:24:43 +0000
(10:24 -0300)
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
8531049
..
f4e55e0
100644
(file)
--- a/
src/io/sink_apple_audio.c
+++ b/
src/io/sink_apple_audio.c
@@
-61,6
+61,11
@@
aubio_sink_apple_audio_t * new_aubio_sink_apple_audio(char_t * uri, uint_t sampl
s->max_frames = MAX_SIZE;
s->async = true;
+ if (uri == NULL) {
+ AUBIO_ERROR("sink_apple_audio: Aborted opening null path\n");
+ goto beach;
+ }
+
s->samplerate = 0;
s->channels = 0;