Diffstat (limited to 'ui-repolist.c')
| -rw-r--r-- | ui-repolist.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ui-repolist.c b/ui-repolist.c index f9cb21a..7b1fec3 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -333,7 +333,9 @@ void cgit_print_site_readme() { if (!ctx.cfg.root_readme) return; - cgit_open_filter(ctx.cfg.about_filter, ctx.cfg.root_readme); + if (ctx.cfg.about_filter) + cgit_open_filter(ctx.cfg.about_filter, ctx.cfg.root_readme); html_include(ctx.cfg.root_readme); - cgit_close_filter(ctx.cfg.about_filter); + if (ctx.cfg.about_filter) + cgit_close_filter(ctx.cfg.about_filter); } |