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 4120838..aadd4f8 100644
--- a/sync.c
+++ b/sync.c
@@ -100,7 +100,7 @@ pthread_join (pthread_t thread, void **value_ptr)
self = pthread_self ();
- if (pthread_equal (self, thread) == 0)
+ if (pthread_equal (self, thread) != 0)
{
result = EDEADLK;
}