From 31c306a70dadac0d81272d6104ad81d9a320f0f5 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 30 Nov 2016 15:38:29 +0100 Subject: [PATCH] src/io/sink_apple_audio.c: avoid crash on empty file name --- src/io/sink_apple_audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io/sink_apple_audio.c b/src/io/sink_apple_audio.c index c7e99fc6..f83c3da3 100644 --- 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; } -- 2.11.0