]> granicus.if.org Git - cgit/commitdiff
Default repo description to "[no description]"
authorEvan Martin <martine@xen.localdomain>
Sun, 2 Dec 2007 22:39:30 +0000 (14:39 -0800)
committerLars Hjemli <hjemli@gmail.com>
Sun, 2 Dec 2007 23:21:44 +0000 (00:21 +0100)
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

index 6117f5c7ae0ebf7cebcda1c48ab2d2b6aa4b5c2f..84aa281ea35812b8053d080eecdc221071af4c5f 100644 (file)
--- 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";