aboutsummaryrefslogtreecommitdiffstats
path: root/scan-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'scan-tree.c')
-rw-r--r--scan-tree.c2
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
@@ -83,7 +83,7 @@ static void add_repo(const char *base, const char *path, repo_config_fn fn)
83 83
84 p = fmt("%s/README.html", path); 84 p = fmt("%s/README.html", path);
85 if (!stat(p, &st)) 85 if (!stat(p, &st))
86 repo->readme = "README.html"; 86 repo->readme = xstrdup(p);
87 87
88 p = fmt("%s/cgitrc", path); 88 p = fmt("%s/cgitrc", path);
89 if (!stat(p, &st)) { 89 if (!stat(p, &st)) {