X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/92f6940975f6771f3a08d497c02575ee5bdc79da..fc384b16fb9787380746000d3cea2d53fccc548e:/scan-tree.c?ds=sidebyside diff --git a/scan-tree.c b/scan-tree.c index dbca797..ebfd41e 100644 --- a/scan-tree.c +++ b/scan-tree.c @@ -83,7 +83,7 @@ static void add_repo(const char *base, const char *path, repo_config_fn fn) p = fmt("%s/README.html", path); if (!stat(p, &st)) - repo->readme = "README.html"; + repo->readme = xstrdup(p); p = fmt("%s/cgitrc", path); if (!stat(p, &st)) {