Rename global configuration define.

This commit is contained in:
Nicholas Marriott
2013-04-24 10:01:32 +00:00
parent 3d2b7d5bce
commit e323101ede
3 changed files with 7 additions and 8 deletions

2
tmux.c
View File

@ -357,7 +357,7 @@ main(int argc, char **argv)
if (pw != NULL)
home = pw->pw_dir;
}
xasprintf(&cfg_file, "%s/%s", home, DEFAULT_CFG);
xasprintf(&cfg_file, "%s/.tmux.conf", home);
if (access(cfg_file, R_OK) != 0 && errno == ENOENT) {
free(cfg_file);
cfg_file = NULL;