diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2006-10-03 03:06:30 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2006-10-03 03:06:30 +0000 |
commit | 00719544eb64bfb7d2aad119f571b4c4d4cad540 (patch) | |
tree | fb9a78418e9c61a719925cb76b71dbee642e7d7d /src/audio.c | |
parent | d3040d1eb5aca9f6147007e3684acb361d281349 (diff) | |
download | mpd-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.c | 3 |
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) { |