From: Peter Meerwald Date: Mon, 16 Dec 2013 17:01:37 +0000 (+0100) Subject: core: Fix asserting command in protocol-native X-Git-Url: https://code.delx.au/pulseaudio/commitdiff_plain/94deb3725d145d98191ab5db089ff30ad3805faa core: Fix asserting command in protocol-native https://scan7.coverity.com:8443/reports.htm#v10206/p10016/fileInstanceId=8690&defectInstanceId=3688&mergedDefectId=591259 Signed-off-by: Peter Meerwald --- diff --git a/src/pulsecore/protocol-native.c b/src/pulsecore/protocol-native.c index 071e5e2c..7361a894 100644 --- a/src/pulsecore/protocol-native.c +++ b/src/pulsecore/protocol-native.c @@ -4745,7 +4745,7 @@ static void command_set_sink_or_source_port(pa_pdispatch *pd, uint32_t command, } else { pa_source *source; - pa_assert(command = PA_COMMAND_SET_SOURCE_PORT); + pa_assert(command == PA_COMMAND_SET_SOURCE_PORT); if (idx != PA_INVALID_INDEX) source = pa_idxset_get_by_index(c->protocol->core->sources, idx);