summaryrefslogtreecommitdiff
path: root/sysdeps/generic/pt-rwlock-timedwrlock.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/pt-rwlock-timedwrlock.c')
-rw-r--r--sysdeps/generic/pt-rwlock-timedwrlock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/generic/pt-rwlock-timedwrlock.c b/sysdeps/generic/pt-rwlock-timedwrlock.c
index 3a3faad..8a2a469 100644
--- a/sysdeps/generic/pt-rwlock-timedwrlock.c
+++ b/sysdeps/generic/pt-rwlock-timedwrlock.c
@@ -65,7 +65,7 @@ __pthread_rwlock_timedwrlock_internal (struct __pthread_rwlock *rwlock,
}
__pthread_spin_lock (&rwlock->__lock);
- if (!self->prevp)
+ if (self->prevp == NULL)
/* Another thread removed us from the queue, which means a wakeup message
has been sent. It was either consumed while we were blocking, or
queued after we timed out and before we acquired the rwlock lock, in