On Thu, 24 May 2012 14:55:38 -0600 Eduardo Silva <[email protected]> wrote:
> > Fixes a Clang warning. > > > > - Lauri > > Please resubmit with exit(EXIT_FAILURE); Attaching updated patch. - Lauri
>From d3fe6c8e979c43c72676e4db41f8b8221ac1ab21 Mon Sep 17 00:00:00 2001 From: Lauri Kasanen <[email protected]> Date: Wed, 23 May 2012 17:40:01 +0300 Subject: [PATCH] mimetype: If the file is invalid, we would crash. Exit instead. v2 Fixes a Clang warning. v2: exit instead of abort 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..c5f574c 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"); + exit(EXIT_FAILURE); } mk_list_foreach(head, §ion->entries) { -- 1.7.2.1
_______________________________________________ Monkey mailing list [email protected] http://lists.monkey-project.com/listinfo/monkey
