diff options
context:
space:
mode:
-rw-r--r--source/ui-repolist.c18
1 file changed, 11 insertions, 7 deletions
diff --git a/source/ui-repolist.c b/source/ui-repolist.c
index e9e710e..a8b401f 100644
--- a/source/ui-repolist.c
+++ b/source/ui-repolist.c
@@ -237,13 +237,17 @@ static void print_repo_row(const char *currenturl, int sublevel)
html("</td>");
if (ctx.cfg.enable_index_owner) {
html("<td class='col-owner'>");
- html("<a href='");
- html_attr(currenturl);
- html("?q=");
- html_url_arg(ctx.repo->owner);
- html("'>");
- html_txt(ctx.repo->owner);
- html("</a>");
+ // A repo without an owner gets an empty cell, since a link
+ // with no text cannot be clicked or read out.
+ if (ctx.repo->owner && *ctx.repo->owner) {
+ html("<a href='");
+ html_attr(currenturl);
+ html("?q=");
+ html_url_arg(ctx.repo->owner);
+ html("'>");
+ html_txt(ctx.repo->owner);
+ html("</a>");
+ }
html("</td>");
}
html("<td class='col-idle'>");