add a sanity check assert

git-svn-id: https://svn.musicpd.org/mpd/trunk@4869 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes 2006-10-03 03:06:30 +00:00
parent d3040d1eb5
commit 00719544eb

View File

@ -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)
{