0
0
mirror of https://github.com/vim/vim.git synced 2025-10-19 08:04:27 -04:00

patch 9.1.1097: --log with non-existent path causes a crash

Problem:  --log with non-existent path causes a crash
          (Ekkosun)
Solution: split initialization phase and init the execution stack
          earlier (Hirohito Higashi)

fixes: #16606
closes: #16610

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Hirohito Higashi
2025-02-10 20:55:17 +01:00
committed by Christian Brabandt
parent 97baa1cfe8
commit c5654b8448
5 changed files with 30 additions and 6 deletions

View File

@@ -508,7 +508,8 @@ main(int argc, char **argv)
CLEAR_FIELD(params);
params.argc = argc;
params.argv = argv;
common_init(&params);
common_init_1();
common_init_2(&params);
set_option_value_give_err((char_u *)"encoding", 0, (char_u *)"utf-8", 0);
init_chartab();