static void print_sort_header(const char *title, const char *sort)
{
char *currenturl = cgit_currenturl();
static void print_sort_header(const char *title, const char *sort)
{
char *currenturl = cgit_currenturl();
int i, columns = 3, hits = 0, header = 0;
char *last_section = NULL;
char *section;
int i, columns = 3, hits = 0, header = 0;
char *last_section = NULL;
char *section;
(last_section != NULL && section == NULL) ||
(last_section != NULL && section != NULL &&
strcmp(section, last_section)))) {
(last_section != NULL && section == NULL) ||
(last_section != NULL && section != NULL &&
strcmp(section, last_section)))) {
!sorted && section ? "sublevel-repo" : "toplevel-repo");
cgit_summary_link(ctx.repo->name, ctx.repo->name, NULL, NULL);
html("</td><td>");
!sorted && section ? "sublevel-repo" : "toplevel-repo");
cgit_summary_link(ctx.repo->name, ctx.repo->name, NULL, NULL);
html("</td><td>");
- html_link_open(cgit_repourl(ctx.repo->url), NULL, NULL);
+ repourl = cgit_repourl(ctx.repo->url);
+ html_link_open(repourl, NULL, NULL);
+ free(repourl);
print_pager(hits, ctx.cfg.max_repo_count, ctx.qry.search, ctx.qry.sort);
cgit_print_docend();
}
print_pager(hits, ctx.cfg.max_repo_count, ctx.qry.search, ctx.qry.sort);
cgit_print_docend();
}