Add "const" qualifier to "char *excludes_file".
[gitweb.git] / config.c
index 703c2085a5d7745c06633e534e445926dfdc3185..b82907cb857c9f745a2afa7abe786ee0c7ae1ff8 100644 (file)
--- a/config.c
+++ b/config.c
@@ -446,12 +446,8 @@ int git_default_config(const char *var, const char *value)
        if (!strcmp(var, "core.editor"))
                return git_config_string(&editor_program, var, value);
 
-       if (!strcmp(var, "core.excludesfile")) {
-               if (!value)
-                       return config_error_nonbool(var);
-               excludes_file = xstrdup(value);
-               return 0;
-       }
+       if (!strcmp(var, "core.excludesfile"))
+               return git_config_string(&excludes_file, var, value);
 
        if (!strcmp(var, "core.whitespace")) {
                if (!value)