summaryrefslogtreecommitdiff
path: root/pthread_key_create.c
diff options
context:
space:
mode:
Diffstat (limited to 'pthread_key_create.c')
-rw-r--r--pthread_key_create.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pthread_key_create.c b/pthread_key_create.c
index b5b00ce..5e278c2 100644
--- a/pthread_key_create.c
+++ b/pthread_key_create.c
@@ -98,7 +98,7 @@ pthread_key_create (pthread_key_t * key, void (*destructor) (void *))
*
* The mutex will only be created when it is first locked.
*/
- newkey->threadsLock = PTHREAD_MUTEX_INITIALIZER;
+ newkey->keyLock = PTHREAD_MUTEX_INITIALIZER;
newkey->destructor = destructor;
}