diff options
Diffstat (limited to 'shared.c')
| -rw-r--r-- | shared.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -33,6 +33,7 @@ int chk_non_negative(int result, char *msg) | |||
| 33 | return result; | 33 | return result; |
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | char *cgit_default_repo_desc = "[no description]"; | ||
| 36 | struct cgit_repo *cgit_add_repo(const char *url) | 37 | struct 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; |
