diff options
author | Carsten Haitzler <raster@rasterman.com> | 2007-10-26 10:49:16 +0000 |
---|---|---|
committer | Carsten Haitzler <raster@rasterman.com> | 2007-10-26 10:49:16 +0000 |
commit | 5482c360158e1815826f5ddd27fa51d8e2a90f07 (patch) | |
tree | 2115537a0c443f7618acbd075b42df66bb565e39 /legacy/emotion/src/lib/emotion_smart.c | |
parent | 3209b5f4e83f9bf66bc02f60fff3b8a51e0bca76 (diff) |
check if *mod is null
SVN revision: 32167
Diffstat (limited to '')
-rw-r--r-- | legacy/emotion/src/lib/emotion_smart.c | 7 |
1 files 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 ** | |||
107 | { | 107 | { |
108 | if (func_module_open(obj, mod, video, &(sd->module_options))) | 108 | if (func_module_open(obj, mod, video, &(sd->module_options))) |
109 | { | 109 | { |
110 | (*mod)->handle = handle; | 110 | if (*mod) |
111 | return 1; | 111 | { |
112 | (*mod)->handle = handle; | ||
113 | return 1; | ||
114 | } | ||
112 | } | 115 | } |
113 | } | 116 | } |
114 | dlclose(handle); | 117 | dlclose(handle); |