Skip to content

Commit 539b264

Browse files
committed
Merge pull request #164 from alexcrichton/ice
Fix debuginfo ICE for now
2 parents d3e48fa + bb2fe87 commit 539b264

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

openssl-sys/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,10 @@ pub fn init() {
218218
SSL_load_error_strings();
219219

220220
let num_locks = CRYPTO_num_locks();
221-
let mutexes = Box::new(range(0, num_locks).map(|_| MUTEX_INIT).collect::<Vec<_>>());
221+
let mut mutexes = Box::new(Vec::new());
222+
for _ in 0..num_locks {
223+
mutexes.push(MUTEX_INIT);
224+
}
222225
MUTEXES = mem::transmute(mutexes);
223226
let guards: Box<Vec<Option<MutexGuard<()>>>> =
224227
Box::new(range(0, num_locks).map(|_| None).collect());

0 commit comments

Comments
 (0)