summaryrefslogtreecommitdiff
path: root/sysdeps/generic/pt-mutex-trylock.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/pt-mutex-trylock.c')
-rw-r--r--sysdeps/generic/pt-mutex-trylock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/generic/pt-mutex-trylock.c b/sysdeps/generic/pt-mutex-trylock.c
index 179222f..3a0fcfe 100644
--- a/sysdeps/generic/pt-mutex-trylock.c
+++ b/sysdeps/generic/pt-mutex-trylock.c
@@ -47,7 +47,7 @@ __pthread_mutex_trylock (struct __pthread_mutex *mutex)
initialized, in particular, before the main thread has a
TCB. */
{
- assert (!mutex->__owner);
+ assert (mutex->__owner == NULL);
mutex->__owner = _pthread_self ();
}
#endif