From a8f4a7faa0f8c98a0f113a59e017f0cf8f825384 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 28 Nov 2016 15:46:44 -0800 Subject: [PATCH] Init openssl env vars before libgit2 Apparently libgit2 needs them set, so if we initialize them afterwards they're not actually used. --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index afb175dc49..cca8e8f0b1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -528,13 +528,13 @@ mod tree; mod treebuilder; fn init() { - raw::init(); - static INIT: Once = ONCE_INIT; INIT.call_once(|| { openssl_env_init(); }); + + raw::init(); } #[cfg(all(unix, not(target_os = "macos"), not(target_os = "ios"), feature = "https"))]