about summary refs log tree commit diff stats
path: root/shared.c
diff options
context:
space:
mode:
Diffstat (limited to 'shared.c')
-rw-r--r--shared.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shared.c b/shared.c index 0a0e22e..3e20937 100644 --- a/shared.c +++ b/shared.c
@@ -33,6 +33,7 @@ int chk_non_negative(int result, char *msg)
33 return result; 33 return result;
34} 34}
35 35
36char *cgit_default_repo_desc = "[no description]";
36struct cgit_repo *cgit_add_repo(const char *url) 37struct cgit_repo *cgit_add_repo(const char *url)
37{ 38{
38 struct cgit_repo *ret; 39 struct cgit_repo *ret;
@@ -52,7 +53,7 @@ struct cgit_repo *cgit_add_repo(const char *url)
52 ret->url = trim_end(url, '/'); 53 ret->url = trim_end(url, '/');
53 ret->name = ret->url; 54 ret->name = ret->url;
54 ret->path = NULL; 55 ret->path = NULL;
55 ret->desc = "[no description]"; 56 ret->desc = cgit_default_repo_desc;
56 ret->owner = NULL; 57 ret->owner = NULL;
57 ret->section = ctx.cfg.section; 58 ret->section = ctx.cfg.section;
58 ret->snapshots = ctx.cfg.snapshots; 59 ret->snapshots = ctx.cfg.snapshots;