summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libddekit/condvar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libddekit/condvar.c b/libddekit/condvar.c
index bbd49417..391a20fa 100644
--- a/libddekit/condvar.c
+++ b/libddekit/condvar.c
@@ -24,7 +24,7 @@ ddekit_condvar_t *ddekit_condvar_init() {
void ddekit_condvar_wait(ddekit_condvar_t *cvp, ddekit_lock_t *mp) {
/* This isn't nice. The encapsulation is broken.
* TODO I can merge the two files condvar.c and lock.c. */
- condition_wait (&cvp->cond, (struct mutex *) mp);
+ condition_wait (&cvp->cond, (struct mutex *) *mp);
}
int ddekit_condvar_wait_timed(ddekit_condvar_t *cvp,