check if *mod is null
authorraster <raster>
Fri, 26 Oct 2007 10:49:16 +0000 (10:49 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 26 Oct 2007 10:49:16 +0000 (10:49 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/e17/libs/emotion@32167 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/emotion_smart.c

index db9d8b5..b874ff7 100644 (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);