X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/485b09925cd54f3f55257619fa5796d274e96050..e68c86e8c54a6f03e7405dff3d38995c6c42e4fa:/scan-tree.c diff --git a/scan-tree.c b/scan-tree.c index e900ad9..b5a10ff 100644 --- a/scan-tree.c +++ b/scan-tree.c @@ -45,8 +45,8 @@ out: return result; } -struct cgit_repo *repo; -repo_config_fn config_fn; +static struct cgit_repo *repo; +static repo_config_fn config_fn; static void repo_config(const char *name, const char *value) { @@ -174,7 +174,7 @@ static void add_repo(const char *base, struct strbuf *path, repo_config_fn fn) strbuf_addstr(path, "cgitrc"); if (!stat(path->buf, &st)) - parse_configfile(xstrdup(path->buf), &repo_config); + parse_configfile(path->buf, &repo_config); strbuf_release(&rel); }