Better trapping for already loaded comp module.

Signed-off-by: Chris Michael <devilhorns@comcast.net>
This commit is contained in:
Chris Michael 2013-06-11 16:42:47 +01:00
parent 245cc2164a
commit a47f3ba8fd
1 changed files with 7 additions and 5 deletions

View File

@ -41,13 +41,15 @@ e_comp_init(void)
modname = "wl_drm";
if (!(mod = e_module_find(modname)))
mod = e_module_new(modname);
if (mod)
{
if ((e_module_enable(mod)))
return 1;
if ((mod = e_module_new(modname)))
{
if (e_module_enable(mod))
return 1;
}
}
else
return 1;
return 0;
}