summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Raghavan <arun@asymptotic.io>2020-11-23 17:01:01 -0500
committerArun Raghavan <arun@arunraghavan.net>2020-11-23 22:45:42 +0000
commit5f3717f39cc3e373a3caaebd0d1625486fdd3b31 (patch)
tree447f6c5ab187226b1b05600411c14a5a8a31b0a5
parenta73ec2a3f4f03829575761dc17546cf3226861c7 (diff)
downloadpulseaudio-5f3717f39cc3e373a3caaebd0d1625486fdd3b31.tar.gz
mutex-posix: Fix error assignment for unlock() check
This comment was missed in 757eb264485b11ca9163a260d8772c59ac3108a1.
-rw-r--r--src/pulsecore/mutex-posix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/mutex-posix.c b/src/pulsecore/mutex-posix.c
index 41309a0a3..86f029c7c 100644
--- a/src/pulsecore/mutex-posix.c
+++ b/src/pulsecore/mutex-posix.c
@@ -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();
}