From 7b346647c9d8cc3b4acccecc3ede526dc4b2fb06 Mon Sep 17 00:00:00 2001 From: Evan Martin Date: Sun, 2 Dec 2007 14:39:30 -0800 Subject: [PATCH] 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 --- shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";