From 6d7552bc072599313ef423d69156d824c075572a Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Sun, 22 Aug 2010 13:29:57 +0200 Subject: Use GIT-1.7.2.2 Signed-off-by: Lars Hjemli --- ui-plain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui-plain.c') diff --git a/ui-plain.c b/ui-plain.c index da76406..1b2b672 100644 --- a/ui-plain.c +++ b/ui-plain.c @@ -34,7 +34,7 @@ static void print_object(const unsigned char *sha1, const char *path) ctx.page.mimetype = NULL; ext = strrchr(path, '.'); if (ext && *(++ext)) { - mime = string_list_lookup(ext, &ctx.cfg.mimetypes); + mime = string_list_lookup(&ctx.cfg.mimetypes, ext); if (mime) ctx.page.mimetype = (char *)mime->util; } -- cgit v1.2.3-70-g09d2