diff options
| author | John Birrell <jb@FreeBSD.org> | 1998-05-31 23:47:06 +0000 |
|---|---|---|
| committer | John Birrell <jb@FreeBSD.org> | 1998-05-31 23:47:06 +0000 |
| commit | 5d359b97bbee13fd309e9daa637ba001007e4a53 (patch) | |
| tree | a84f531a71c03ee631cd42f6028a93267e1c288a /lib/libpthread/thread/thr_spec.c | |
| parent | d972680a31910d8ebd5f437c7b5b4aabcca6e385 (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_spec.c')
| -rw-r--r-- | lib/libpthread/thread/thr_spec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_spec.c b/lib/libpthread/thread/thr_spec.c index dc493dd74e69..cf60f381edcb 100644 --- a/lib/libpthread/thread/thr_spec.c +++ b/lib/libpthread/thread/thr_spec.c @@ -146,7 +146,7 @@ pthread_setspecific(pthread_key_t key, const void *value) if ((pthread->specific_data) || (pthread->specific_data = pthread_key_allocate_data())) { - if ((key < PTHREAD_KEYS_MAX) && (key_table)) { + if (key < PTHREAD_KEYS_MAX) { /* Lock the key table entry: */ _spinlock(&key_table[key].access_lock); |
