aboutsummaryrefslogtreecommitdiffstats
path: root/thread_pthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index cbe6aa028a..29284ff0f9 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -587,7 +587,7 @@ Init_native_thread(rb_thread_t *th)
if (r) condattr_monotonic = NULL;
}
#endif
- pthread_key_create(&ruby_native_thread_key, NULL);
+ pthread_key_create(&ruby_native_thread_key, 0);
th->thread_id = pthread_self();
fill_thread_id_str(th);
native_thread_init(th);