From 47d04bda4e14c8aef0c3fa7e8ae64e690b25fb66 Mon Sep 17 00:00:00 2001 From: bje Date: Thu, 29 Oct 1998 21:40:46 +0000 Subject: 1998-10-30 Ben Elliston * condvar.c (cond_wait): Fix semantic error. Test for equality instead of making an assignment. --- condvar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'condvar.c') diff --git a/condvar.c b/condvar.c index 2b78b55..3dc76d4 100644 --- a/condvar.c +++ b/condvar.c @@ -107,7 +107,7 @@ cond_wait(pthread_cond_t *cv, pthread_mutex_t *mutex, DWORD abstime) pthread_mutex_unlock (&cv->waiters_count_lock); /* Some thread called pthread_cond_broadcast(). */ - if ((result = WAIT_OBJECT_0 + BROADCAST) && last_waiter) + if ((result == WAIT_OBJECT_0 + BROADCAST) && last_waiter) { /* We're the last waiter to be notified, so reset the manual event. */ -- cgit v1.2.3