fix warning reported gcc 4.0: x == y == z does not work as intended
git-svn-id: https://svn.musicpd.org/mpd/trunk@3422 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
05036ef618
commit
bde7029409
@ -344,7 +344,8 @@ static int oss_initDriver(AudioOutput * audioOutput, ConfigParam * param) {
|
||||
"device\n");
|
||||
}
|
||||
|
||||
if(ret[0] == ret[1] == OSS_STAT_DOESN_T_EXIST) {
|
||||
if((ret[0] == OSS_STAT_DOESN_T_EXIST) &&
|
||||
(ret[1] == OSS_STAT_DOESN_T_EXIST)) {
|
||||
ERROR("Neither /dev/dsp nor /dev/sound/dsp "
|
||||
"were found\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user