Commit 539b264a authored by Steven Fackler's avatar Steven Fackler
Browse files

Merge pull request #164 from alexcrichton/ice

Fix debuginfo ICE for now
parents d3e48fa1 bb2fe87d
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -218,7 +218,10 @@ pub fn init() {
            SSL_load_error_strings();

            let num_locks = CRYPTO_num_locks();
            let mutexes = Box::new(range(0, num_locks).map(|_| MUTEX_INIT).collect::<Vec<_>>());
            let mut mutexes = Box::new(Vec::new());
            for _ in 0..num_locks {
                mutexes.push(MUTEX_INIT);
            }
            MUTEXES = mem::transmute(mutexes);
            let guards: Box<Vec<Option<MutexGuard<()>>>> =
                Box::new(range(0, num_locks).map(|_| None).collect());