log_init: call log_path_init (#11501)

This has to be done after `init_homedir` for XDG default and `set_init_1` for
lookup from env, which could be done earlier likely (to help with
https://github.com/neovim/neovim/issues/10937), but this keeps it in
sync with Vim.

Fixes https://github.com/neovim/neovim/issues/11499.
This commit is contained in:
Daniel Hahler
2019-12-02 22:21:15 +01:00
committed by GitHub
parent 56be9fbde1
commit 22b52dd462
3 changed files with 2 additions and 10 deletions

View File

@@ -93,6 +93,7 @@ static bool log_path_init(void)
void log_init(void)
{
uv_mutex_init(&mutex);
log_path_init();
}
void log_lock(void)