aboutsummaryrefslogtreecommitdiff
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
-rw-r--r--ui-atom.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ui-atom.c b/ui-atom.c
index d7138fb..e2b39ee 100644
--- a/ui-atom.c
+++ b/ui-atom.c
@@ -125,13 +125,11 @@ void cgit_print_atom(char *tip, char *path, int max_count)
html_txt(ctx.repo->desc);
html("</subtitle>\n");
if (host) {
- char *repourl = cgit_repourl(ctx.repo->url);
html("<link rel='alternate' type='text/html' href='");
html(cgit_httpscheme());
html_attr(host);
- html_attr(repourl);
+ html_attr(cgit_repourl(ctx.repo->url));
html("'/>\n");
- free(repourl);
}
while ((commit = get_revision(&rev)) != NULL) {
add_entry(commit, host);