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:
parent
d3040d1eb5
commit
00719544eb
@ -128,6 +128,9 @@ void initAudioDriver(void)
|
|||||||
|
|
||||||
param = getNextConfigParam(CONF_AUDIO_OUTPUT, param);
|
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 (!initAudioOutput(output, param)) {
|
||||||
if (param)
|
if (param)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user