X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/7ef1a47991fee31c1eb1e1292bf715d577042f35..6edc84bc44d55d7f90a40238ae2107913e15f54b:/ui-repolist.c diff --git a/ui-repolist.c b/ui-repolist.c index 4f52e0f..8d982c4 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -15,7 +15,7 @@ static time_t read_agefile(char *path) { time_t result; size_t size; - char *buf; + char *buf = NULL; struct strbuf date_buf = STRBUF_INIT; if (readfile(path, &buf, &size)) { @@ -108,14 +108,16 @@ static int is_in_url(struct cgit_repo *repo) static void print_sort_header(const char *title, const char *sort) { + char *currenturl = cgit_currenturl(); html("%s", title); + free(currenturl); } static void print_header(void)