Hi

Fixes a Clang warning.

- Lauri
>From f7aaa3274de8ca36573ba38c63aaf53157115b90 Mon Sep 17 00:00:00 2001
From: Lauri Kasanen <[email protected]>
Date: Wed, 23 May 2012 17:40:01 +0300
Subject: [PATCH 07/13] mimetype: If the file is invalid, we would crash. Exit 
instead.

Fixes a Clang warning.

Signed-off-by: Lauri Kasanen <[email protected]>
---
 src/mk_mimetype.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/mk_mimetype.c b/src/mk_mimetype.c
index 4050734..cdccb06 100644
--- a/src/mk_mimetype.c
+++ b/src/mk_mimetype.c
@@ -118,6 +118,7 @@ void mk_mimetype_read_config()
     section = mk_config_section_get(cnf, "MIMETYPES");
     if (!section) {
         mk_err("Error: Invalid mime type file");
+        abort();
     }
 
     mk_list_foreach(head, &section->entries) {
-- 
1.7.2.1

_______________________________________________
Monkey mailing list
[email protected]
http://lists.monkey-project.com/listinfo/monkey

Reply via email to