summaryrefslogtreecommitdiffabout
authorEvan Martin <martine@xen.localdomain>2007-12-02 22:39:30 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2007-12-02 23:21:44 (UTC)
commit7b346647c9d8cc3b4acccecc3ede526dc4b2fb06 (patch) (side-by-side diff)
tree0c19269fe65337ee04e960017140c32e65f2d21c
parentfc4c4ba3a99f4fe4bd8a42caca902269d2e0b678 (diff)
downloadcgit-7b346647c9d8cc3b4acccecc3ede526dc4b2fb06.zip
cgit-7b346647c9d8cc3b4acccecc3ede526dc4b2fb06.tar.gz
cgit-7b346647c9d8cc3b4acccecc3ede526dc4b2fb06.tar.bz2
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>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--shared.c2
1 files changed, 1 insertions, 1 deletions
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";