summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/global.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/global.c b/src/global.c
index 03a4bced..c72bfe89 100644
--- a/src/global.c
+++ b/src/global.c
@@ -291,7 +291,13 @@ static git_global_st __state;
int git_threads_init(void)
{
- init_ssl();
+ static int ssl_inited = 0;
+
+ if (!ssl_inited) {
+ init_ssl();
+ ssl_inited = 1;
+ }
+
git_atomic_inc(&git__n_inits);
return 0;
}