projects
/
platform
/
upstream
/
enlightenment.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2894bae
)
check module name existence before reading from it
author
Mike Blumenkrantz
<zmike@osg.samsung.com>
Thu, 23 Apr 2015 12:23:13 +0000
(08:23 -0400)
committer
Mike Blumenkrantz
<zmike@osg.samsung.com>
Thu, 23 Apr 2015 12:23:13 +0000
(08:23 -0400)
CID 1295427
src/bin/e_module.c
patch
|
blob
|
history
diff --git
a/src/bin/e_module.c
b/src/bin/e_module.c
index
1a33c57
..
24f16a8
100644
(file)
--- a/
src/bin/e_module.c
+++ b/
src/bin/e_module.c
@@
-238,7
+238,7
@@
e_module_all_load(void)
EINA_LIST_FOREACH_SAFE(e_config->modules, l, ll, em)
{
- if (
!em
) continue;
+ if (
(!em) || (!em->name)
) continue;
if ((!e_util_strcmp(em->name, "comp")) || (!e_util_strcmp(em->name, "conf_comp")) ||
(!strncmp(em->name, "wl_", 3)) //block wl_* modules from being saved
@@
-261,7
+261,6
@@
e_module_all_load(void)
{
E_Module *m;
- if (!em->name) continue;
if (eina_hash_find(_e_modules_hash, em->name)) continue;
e_util_env_set("E_MODULE_LOAD", em->name);