Author: Evan Martin <martine@xen.localdomain>
Default repo description to "[no description]" Otherwise, when you leave out a description for a repository, the NULL default causes cgit to print out titles like "cgit - (null)". Signed-off-by: Lars Hjemli <hjemli@gmail.com>
shared.c | 2 +-
diff --git a/shared.c b/shared.c index 6117f5c7ae0ebf7cebcda1c48ab2d2b6aa4b5c2f..84aa281ea35812b8053d080eecdc221071af4c5f 100644 --- a/shared.c +++ b/shared.c @@ -116,7 +116,7 @@ ret = &cgit_repolist.repos[cgit_repolist.count-1]; ret->url = trim_end(url, '/'); ret->name = ret->url; ret->path = NULL; - ret->desc = NULL; + ret->desc = "[no description]"; ret->owner = NULL; ret->group = cgit_repo_group; ret->defbranch = "master";