Fix build

This commit is contained in:
Steven Fackler 2017-07-25 20:41:11 -07:00
parent 16b2870d14
commit a02f039c0c
1 changed files with 1 additions and 1 deletions

View File

@ -747,7 +747,7 @@ unsafe extern "C" fn locking_function(mode: c_int, n: c_int, _file: *const c_cha
if mode & ::CRYPTO_LOCK != 0 { if mode & ::CRYPTO_LOCK != 0 {
(*GUARDS)[n as usize] = Some(mutex.lock().unwrap()); (*GUARDS)[n as usize] = Some(mutex.lock().unwrap());
} else { } else {
if let None = &(*GUARDS)[n as usize].take() { if let None = (*GUARDS)[n as usize].take() {
println!("lock {} already unlocked", n); println!("lock {} already unlocked", n);
process::abort(); process::abort();
} }