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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/generic/pt-rwlock-timedwrlock.c b/sysdeps/generic/pt-rwlock-timedwrlock.c
index 8a2a469..b30c250 100644
--- a/sysdeps/generic/pt-rwlock-timedwrlock.c
+++ b/sysdeps/generic/pt-rwlock-timedwrlock.c
@@ -46,7 +46,7 @@ __pthread_rwlock_timedwrlock_internal (struct __pthread_rwlock *rwlock,
/* The lock is busy. */
- if (abstime && (abstime->tv_nsec < 0 || abstime->tv_nsec >= 1000000000))
+ if (abstime != NULL && (abstime->tv_nsec < 0 || abstime->tv_nsec >= 1000000000))
return EINVAL;
self = _pthread_self ();
@@ -56,7 +56,7 @@ __pthread_rwlock_timedwrlock_internal (struct __pthread_rwlock *rwlock,
__pthread_spin_unlock (&rwlock->__lock);
/* Block the thread. */
- if (abstime)
+ if (abstime != NULL)
err = __pthread_timedblock (self, abstime, CLOCK_REALTIME);
else
{