mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-07 07:10:07 +00:00
Merge pull request #3322 from libgit2/fix-init-ordering
Increment `git__n_inits` before doing `init_once`.
This commit is contained in:
commit
abbe17ef1f
@ -344,8 +344,8 @@ int git_libgit2_init(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
pthread_once(&_once_init, init_once);
|
||||
ret = git_atomic_inc(&git__n_inits);
|
||||
pthread_once(&_once_init, init_once);
|
||||
|
||||
return init_error ? init_error : ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user