From: Jonas Fonseca Date: Thu, 5 Feb 2009 17:38:47 +0000 (+0100) Subject: Simplify setting the default for the system configuration file X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=19115b2d561f7d113e702906f596e38f8317bd27;p=tig.git Simplify setting the default for the system configuration file --- diff --git a/tig.c b/tig.c index e0d0640..a32db5d 100644 --- a/tig.c +++ b/tig.c @@ -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) {