From fe0773b81a5bb91783cd10996c46cb64a4eb9a06 Mon Sep 17 00:00:00 2001 From: raster Date: Fri, 26 Oct 2007 10:49:16 +0000 Subject: [PATCH] check if *mod is null git-svn-id: http://svn.enlightenment.org/svn/e/trunk/e17/libs/emotion@32167 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/emotion_smart.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lib/emotion_smart.c b/src/lib/emotion_smart.c index db9d8b5..b874ff7 100644 --- a/src/lib/emotion_smart.c +++ b/src/lib/emotion_smart.c @@ -107,8 +107,11 @@ _emotion_module_open(const char *name, Evas_Object *obj, Emotion_Video_Module ** { if (func_module_open(obj, mod, video, &(sd->module_options))) { - (*mod)->handle = handle; - return 1; + if (*mod) + { + (*mod)->handle = handle; + return 1; + } } } dlclose(handle); -- 2.7.4