protocol-native.c has a bunch of asserts like this ... CHECK_VALIDITY(c->pstream, idx != PA_INVALID_INDEX || name, tag, PA_ERR_INVALID); CHECK_VALIDITY(c->pstream, idx == PA_INVALID_INDEX || !name, tag, PA_ERR_INVALID); CHECK_VALIDITY(c->pstream, !name || idx == PA_INVALID_INDEX, tag, PA_ERR_INVALID); ... that could be written as a single, more readable, XOR like this ... CHECK_VALIDITY(c->pstream, (idx != PA_INVALID_INDEX) ^ (name != NULL), tag, PA_ERR_INVALID); Ergo, we should do this. :)
I've mailed the patch for this bug on the pulseaudio-discuss mailing list (http://lists.freedesktop.org/archives/pulseaudio-discuss/2013-November/019183.html) Please review it
Fixed: http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=382b8294e3e0b2f708ee59c2023f133f7bfbd2f6
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.