From 5482c360158e1815826f5ddd27fa51d8e2a90f07 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Fri, 26 Oct 2007 10:49:16 +0000 Subject: [PATCH] check if *mod is null SVN revision: 32167 --- legacy/emotion/src/lib/emotion_smart.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/legacy/emotion/src/lib/emotion_smart.c b/legacy/emotion/src/lib/emotion_smart.c index db9d8b578f..b874ff7416 100644 --- a/legacy/emotion/src/lib/emotion_smart.c +++ b/legacy/emotion/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);