From mboxrd@z Thu Jan 1 00:00:00 1970 From: list at eworm.de (Christian Hesse) Date: Mon, 17 Aug 2015 14:42:40 +0200 Subject: [PATCH 1/1] ui-summary: add parentheses for conditions Message-ID: <1439815360-20446-1-git-send-email-list@eworm.de> From: Christian Hesse Signed-off-by: Christian Hesse --- 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