mirror of
https://github.com/neovim/neovim.git
synced 2025-10-12 21:06:13 +00:00
refactor: replace char_u with char 4 (#19987)
* refactor: replace char_u with char Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -63,13 +63,13 @@ static void log_path_init(void)
|
||||
expand_env("$" ENV_LOGFILE, log_file_path, (int)size - 1);
|
||||
if (strequal("$" ENV_LOGFILE, log_file_path)
|
||||
|| log_file_path[0] == '\0'
|
||||
|| os_isdir((char_u *)log_file_path)
|
||||
|| os_isdir(log_file_path)
|
||||
|| !log_try_create(log_file_path)) {
|
||||
// Make $XDG_STATE_HOME if it does not exist.
|
||||
char *loghome = get_xdg_home(kXDGStateHome);
|
||||
char *failed_dir = NULL;
|
||||
bool log_dir_failure = false;
|
||||
if (!os_isdir((char_u *)loghome)) {
|
||||
if (!os_isdir(loghome)) {
|
||||
log_dir_failure = (os_mkdir_recurse(loghome, 0700, &failed_dir) != 0);
|
||||
}
|
||||
XFREE_CLEAR(loghome);
|
||||
|
Reference in New Issue
Block a user