summaryrefslogtreecommitdiff
path: root/sysdeps/hurd/pt-key-delete.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/hurd/pt-key-delete.c')
-rw-r--r--sysdeps/hurd/pt-key-delete.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/hurd/pt-key-delete.c b/sysdeps/hurd/pt-key-delete.c
index 8b2c8bb..499e9f3 100644
--- a/sysdeps/hurd/pt-key-delete.c
+++ b/sysdeps/hurd/pt-key-delete.c
@@ -52,8 +52,8 @@ pthread_key_delete (pthread_key_t key)
/* Just remove the key, no need to care whether it was
already there. */
- if (t->thread_specifics)
- hurd_ihash_remove (t->thread_specifics, key);
+ if (key < t->thread_specifics_size)
+ t->thread_specifics[key] = 0;
}
__pthread_rwlock_unlock (&__pthread_threads_lock);
}