Commit cf198fdf by joshaber

Increment `git__n_inits` before doing `init_once`.

Fixes #3318.
parent e069c621
......@@ -330,8 +330,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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment