Code

Simplify setting the default for the system configuration file
authorJonas Fonseca <fonseca@diku.dk>
Thu, 5 Feb 2009 17:38:47 +0000 (18:38 +0100)
committerJonas Fonseca <fonseca@diku.dk>
Thu, 5 Feb 2009 20:56:50 +0000 (21:56 +0100)
tig.c

diff --git a/tig.c b/tig.c
index e0d0640b97d73b1b26058724c19a02afea487ff6..a32db5d0f1a5ebd5eaf7379d2314962d510b4c7f 100644 (file)
--- 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) {