check if *mod is null

SVN revision: 32167
This commit is contained in:
Carsten Haitzler 2007-10-26 10:49:16 +00:00
parent 3209b5f4e8
commit 5482c36015
1 changed files with 5 additions and 2 deletions

View File

@ -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);