about summary refs log tree commit diff
path: root/src/rt/rust_builtin.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2013-05-06 18:53:45 -0700
committerBrian Anderson <banderson@mozilla.com>2013-05-14 14:52:06 -0700
commit101aaa38616411b7fcef0599a3e514cea7df3a87 (patch)
treef78a190eff9f1fad5eb6a48fe342edc09564375c /src/rt/rust_builtin.cpp
parentd234cf7e440db0abbf867997c45d993a542ee640 (diff)
downloadrust-101aaa38616411b7fcef0599a3e514cea7df3a87.tar.gz
rust-101aaa38616411b7fcef0599a3e514cea7df3a87.zip
core::rt: 0 is a valid TLS key
Diffstat (limited to 'src/rt/rust_builtin.cpp')
-rw-r--r--src/rt/rust_builtin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp
index 90328928122..39a6f5bfd1b 100644
--- a/src/rt/rust_builtin.cpp
+++ b/src/rt/rust_builtin.cpp
@@ -830,9 +830,9 @@ rust_get_rt_env() {
 }
 
 #ifndef _WIN32
-pthread_key_t sched_key;
+pthread_key_t sched_key = -1;
 #else
-DWORD sched_key;
+DWORD sched_key = -1;
 #endif
 
 extern "C" void*