From: Evan Martin Date: Sun, 2 Dec 2007 22:39:30 +0000 (-0800) Subject: Default repo description to "[no description]" X-Git-Tag: v0.7.2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7b346647c9d8cc3b4acccecc3ede526dc4b2fb06;p=cgit 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 --- diff --git a/shared.c b/shared.c index 6117f5c..84aa281 100644 --- a/shared.c +++ b/shared.c @@ -116,7 +116,7 @@ struct repoinfo *add_repo(const char *url) 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";