diff options
Diffstat (limited to 'rwlock.c')
-rw-r--r-- | rwlock.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -182,7 +182,7 @@ pthread_rwlock_destroy(pthread_rwlock_t *rwlock) } else { - rw->rw_magic = (int) NULL; + rw->rw_magic = 0; (void) pthread_mutex_unlock(&(rw->rw_lock)); (void) pthread_cond_destroy(&(rw->rw_condreaders)); (void) pthread_cond_destroy(&(rw->rw_condwriters)); |