List for cgit developers and users
 help / color / mirror / Atom feed
* [PATCH 1/1] ui-summary: add parentheses for conditions
@ 2015-08-17 12:42 list
  2015-08-17 12:43 ` Jason
  0 siblings, 1 reply; 2+ messages in thread
From: list @ 2015-08-17 12:42 UTC (permalink / raw)


From: Christian Hesse <mail at eworm.de>

Signed-off-by: Christian Hesse <mail at 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



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 1/1] ui-summary: add parentheses for conditions
  2015-08-17 12:42 [PATCH 1/1] ui-summary: add parentheses for conditions list
@ 2015-08-17 12:43 ` Jason
  0 siblings, 0 replies; 2+ messages in thread
From: Jason @ 2015-08-17 12:43 UTC (permalink / raw)


Hah. Beat ya to it though!


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-08-17 12:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-17 12:42 [PATCH 1/1] ui-summary: add parentheses for conditions list
2015-08-17 12:43 ` Jason

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).