Skip to content

Commit

Permalink
Simplify setting the default for the system configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas committed Feb 5, 2009
1 parent 60c4405 commit 19115b2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tig.c
Expand Up @@ -1659,11 +1659,8 @@ load_options(void)

add_builtin_run_requests();

if (!tigrc_system) {
if (!string_format(buf, "%s/tigrc", SYSCONFDIR))
return ERR;
tigrc_system = buf;
}
if (!tigrc_system)
tigrc_system = SYSCONFDIR "/tigrc";
load_option_file(tigrc_system);

if (!tigrc_user) {
Expand Down

0 comments on commit 19115b2

Please sign in to comment.