aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2006-10-03 03:06:30 +0000
committerWarren Dukes <warren.dukes@gmail.com>2006-10-03 03:06:30 +0000
commit00719544eb64bfb7d2aad119f571b4c4d4cad540 (patch)
treefb9a78418e9c61a719925cb76b71dbee642e7d7d /src
parentd3040d1eb5aca9f6147007e3684acb361d281349 (diff)
downloadmpd-00719544eb64bfb7d2aad119f571b4c4d4cad540.tar.gz
mpd-00719544eb64bfb7d2aad119f571b4c4d4cad540.tar.xz
mpd-00719544eb64bfb7d2aad119f571b4c4d4cad540.zip
add a sanity check assert
git-svn-id: https://svn.musicpd.org/mpd/trunk@4869 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/audio.c3
1 files changed, 3 insertions, 0 deletions
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)
{