diff --git a/src/backend/network.cpp b/src/backend/network.cpp index f3d33d1e..20b7a449 100644 --- a/src/backend/network.cpp +++ b/src/backend/network.cpp @@ -43,7 +43,10 @@ namespace loot { struct git_handler { public: - git_handler() : repo(nullptr), remote(nullptr), cfg(nullptr), obj(nullptr), commit(nullptr), ref(nullptr), ref2(nullptr), sig(nullptr), blob(nullptr), merge_head(nullptr) {} + git_handler() : repo(nullptr), remote(nullptr), cfg(nullptr), obj(nullptr), commit(nullptr), ref(nullptr), ref2(nullptr), sig(nullptr), blob(nullptr), merge_head(nullptr) { + // Init threading system and OpenSSL (for Linux builds). + git_threads_init(); + } ~git_handler() { git_commit_free(commit);