summaryrefslogtreecommitdiff
path: root/sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'sync.c')
-rw-r--r--sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sync.c b/sync.c
index 49efcdf..721574e 100644
--- a/sync.c
+++ b/sync.c
@@ -188,7 +188,7 @@ pthread_detach(pthread_t thread)
/* This is all we do here - the rest is done either when the
thread exits or when pthread_join() exits. Once this is
set it will never be unset. */
- pthread_attr_setdetachedstate(&(this->attr),
+ pthread_attr_setdetachedstate(&(target->attr),
PTHREAD_CREATE_DETACHED);
ret = 0;