From 00719544eb64bfb7d2aad119f571b4c4d4cad540 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Tue, 3 Oct 2006 03:06:30 +0000 Subject: add a sanity check assert git-svn-id: https://svn.musicpd.org/mpd/trunk@4869 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/audio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/audio.c b/src/audio.c index b98540b7d..ef77d7e28 100644 --- a/src/audio.c +++ b/src/audio.c @@ -128,6 +128,9 @@ void initAudioDriver(void) param = getNextConfigParam(CONF_AUDIO_OUTPUT, param); + /* only allow param to be NULL if there just one audioOutput */ + assert(param || (audioOutputArraySize == 1)); + if (!initAudioOutput(output, param)) { if (param) { -- cgit v1.2.3