summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/thread/pthread_cond_timedwait.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread/pthread_cond_timedwait.c b/src/thread/pthread_cond_timedwait.c
index d28b478e..adf9c6e5 100644
--- a/src/thread/pthread_cond_timedwait.c
+++ b/src/thread/pthread_cond_timedwait.c
@@ -163,7 +163,7 @@ relock:
a_dec(&m->_m_waiters);
/* Since a signal was consumed, cancellation is not permitted. */
- if (e = ECANCELED) e = 0;
+ if (e == ECANCELED) e = 0;
done:
__pthread_setcancelstate(cs, 0);