diff options
-rw-r--r-- | ui-shared.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui-shared.c b/ui-shared.c index 09c34fd..c04f380 100644 --- a/ui-shared.c +++ b/ui-shared.c | |||
@@ -730,7 +730,7 @@ void cgit_print_docstart(void) | |||
730 | return; | 730 | return; |
731 | } | 731 | } |
732 | 732 | ||
733 | const char *host = cgit_hosturl(); | 733 | char *host = cgit_hosturl(); |
734 | html(cgit_doctype); | 734 | html(cgit_doctype); |
735 | html("<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>\n"); | 735 | html("<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>\n"); |
736 | html("<head>\n"); | 736 | html("<head>\n"); |
@@ -755,7 +755,7 @@ void cgit_print_docstart(void) | |||
755 | 755 | ||
756 | html("<link rel='alternate' title='Atom feed' href='"); | 756 | html("<link rel='alternate' title='Atom feed' href='"); |
757 | html(cgit_httpscheme()); | 757 | html(cgit_httpscheme()); |
758 | html_attr(cgit_hosturl()); | 758 | html_attr(host); |
759 | fileurl = cgit_fileurl(ctx.repo->url, "atom", ctx.qry.vpath, | 759 | fileurl = cgit_fileurl(ctx.repo->url, "atom", ctx.qry.vpath, |
760 | sb.buf); | 760 | sb.buf); |
761 | html_attr(fileurl); | 761 | html_attr(fileurl); |
@@ -771,6 +771,7 @@ void cgit_print_docstart(void) | |||
771 | html("<body>\n"); | 771 | html("<body>\n"); |
772 | if (ctx.cfg.header) | 772 | if (ctx.cfg.header) |
773 | html_include(ctx.cfg.header); | 773 | html_include(ctx.cfg.header); |
774 | free(host); | ||
774 | } | 775 | } |
775 | 776 | ||
776 | void cgit_print_docend(void) | 777 | void cgit_print_docend(void) |