From: Christian Hesse <m...@eworm.de> Signed-off-by: Christian Hesse <m...@eworm.de> --- ui-summary.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui-summary.c b/ui-summary.c index 34ca329..8e81ac4 100644 --- a/ui-summary.c +++ b/ui-summary.c @@ -105,7 +105,7 @@ void cgit_print_repo_readme(char *path) int free_filename = 0; mimetype = get_mimetype_for_filename(path); - if (mimetype && !strncmp(mimetype, "image/", 6) || !strncmp(mimetype, "video/", 6)) { + if (mimetype && (!strncmp(mimetype, "image/", 6) || !strncmp(mimetype, "video/", 6))) { ctx.page.mimetype = mimetype; ctx.page.charset = NULL; cgit_print_plain(); -- 2.5.0 _______________________________________________ CGit mailing list CGit@lists.zx2c4.com http://lists.zx2c4.com/mailman/listinfo/cgit