From 19115b2d561f7d113e702906f596e38f8317bd27 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Thu, 5 Feb 2009 18:38:47 +0100 Subject: [PATCH] Simplify setting the default for the system configuration file --- tig.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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) { -- 2.32.0.93.g670b81a890