Skip to content

Commit

Permalink
Init openssl env vars before libgit2
Browse files Browse the repository at this point in the history
Apparently libgit2 needs them set, so if we initialize them afterwards they're
not actually used.
  • Loading branch information
alexcrichton committed Nov 28, 2016
1 parent 0375ba3 commit a8f4a7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))]
Expand Down

0 comments on commit a8f4a7f

Please sign in to comment.