X-Git-Url: https://git.cameronkatri.com/cgit.git/blobdiff_plain/c19d983ed7b86face56e41effea4fffcf9ad1e19..590ba455d694deaf2ec206510cf7f047ac365a96:/ui-shared.c diff --git a/ui-shared.c b/ui-shared.c index b1a6c46..e39d004 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -253,7 +253,7 @@ static char *repolink(const char *title, const char *class, const char *page, } delim = "&"; } - if (head && strcmp(head, ctx.repo->defbranch)) { + if (head && ctx.repo->defbranch && strcmp(head, ctx.repo->defbranch)) { html(delim); html("h="); html_url_arg(head);