-rw-r--r-- | scan-tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scan-tree.c b/scan-tree.c index dbca797..ebfd41e 100644 --- a/scan-tree.c +++ b/scan-tree.c @@ -78,17 +78,17 @@ static void add_repo(const char *base, const char *path, repo_config_fn fn) repo->owner = (pwd ? xstrdup(pwd->pw_gecos ? pwd->pw_gecos : pwd->pw_name) : ""); p = fmt("%s/description", path); if (!stat(p, &st)) readfile(p, &repo->desc, &size); 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)) { config_fn = fn; parse_configfile(xstrdup(p), &repo_config); } } |