X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=builtin-config.c;h=f71016204b540d0d935323c909a0ffccb1abdbe2;hb=0fd9d7e66deb7071da2a568b96c94f94ee890908;hp=0cf191a11294f902d25aeda29e7290f3ab78b482;hpb=679639904da05f7d84e9215960e76dd0f3353328;p=git.git diff --git a/builtin-config.c b/builtin-config.c index 0cf191a11..f71016204 100644 --- a/builtin-config.c +++ b/builtin-config.c @@ -84,7 +84,7 @@ static int get_value(const char* key_, const char* regex_) local = config_exclusive_filename; if (!local) { const char *home = getenv("HOME"); - local = repo_config = xstrdup(git_path("config")); + local = repo_config = git_pathdup("config"); if (git_config_global() && home) global = xstrdup(mkpath("%s/.gitconfig", home)); if (git_config_system()) @@ -145,7 +145,7 @@ free_strings: return ret; } -char *normalize_value(const char *key, const char *value) +static char *normalize_value(const char *key, const char *value) { char *normalized;