mirror of
https://github.com/tmux/tmux.git
synced 2025-01-07 08:18:48 +00:00
Reorder slightly to tidy code.
This commit is contained in:
parent
2f813ef75d
commit
992dd86309
11
server.c
11
server.c
@ -272,14 +272,13 @@ server_start(char *path)
|
|||||||
srv_fd = server_create_socket();
|
srv_fd = server_create_socket();
|
||||||
server_client_create(pair[1]);
|
server_client_create(pair[1]);
|
||||||
|
|
||||||
if (access(SYSTEM_CFG, R_OK) != 0) {
|
if (access(SYSTEM_CFG, R_OK) == 0) {
|
||||||
if (errno != ENOENT) {
|
if (load_cfg(SYSTEM_CFG, NULL, &cause) != 0)
|
||||||
xasprintf(
|
goto error;
|
||||||
&cause, "%s: %s", strerror(errno), SYSTEM_CFG);
|
} else if (errno != ENOENT) {
|
||||||
|
xasprintf(&cause, "%s: %s", strerror(errno), SYSTEM_CFG);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
} else if (load_cfg(SYSTEM_CFG, NULL, &cause) != 0)
|
|
||||||
goto error;
|
|
||||||
if (cfg_file != NULL && load_cfg(cfg_file, NULL, &cause) != 0)
|
if (cfg_file != NULL && load_cfg(cfg_file, NULL, &cause) != 0)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user