summaryrefslogtreecommitdiff
path: root/global.c
diff options
context:
space:
mode:
Diffstat (limited to 'global.c')
-rw-r--r--global.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/global.c b/global.c
index e3af52d..a2ca988 100644
--- a/global.c
+++ b/global.c
@@ -74,7 +74,7 @@ int _pthread_tsd_key_next = 0;
pthread_key_t _pthread_key_virgins[_PTHREAD_MAX_KEYS];
/* Index to the next available previously unused pthread_key_t */
-int _pthread_key_virgin_next;
+int _pthread_key_virgin_next = 0;
/* An array of pthread_key_t */
pthread_key_t _pthread_key_reuse[_PTHREAD_MAX_KEYS];