mutex-posix: Fix error assignment for unlock() check

This comment was missed in 757eb26448.
This commit is contained in:
Arun Raghavan 2020-11-23 17:01:01 -05:00 committed by Arun Raghavan
parent a73ec2a3f4
commit 5f3717f39c

View file

@ -109,7 +109,7 @@ void pa_mutex_unlock(pa_mutex *m) {
pa_assert(m);
if ((err = pthread_mutex_unlock(&m->mutex) != 0)) {
if ((err = pthread_mutex_unlock(&m->mutex)) != 0) {
pa_log("pthread_mutex_unlock() failed: %s", pa_cstrerror(err));
pa_assert_not_reached();
}