The application segment faults on startup when using the Ecore_List.
Signed-off-by: Ryan M. Raasch <ryan.raa...@gmail.com> --- MISC/enna/src/bin/module.c | 18 +++++++----------- 1 files changed, 7 insertions(+), 11 deletions(-) diff --git a/MISC/enna/src/bin/module.c b/MISC/enna/src/bin/module.c index 8e5fc67..5c014c8 100644 --- a/MISC/enna/src/bin/module.c +++ b/MISC/enna/src/bin/module.c @@ -14,7 +14,7 @@ int enna_module_init(void) { if (!path_group) { - Ecore_List *l; + Eina_List *l; char *p; path_group = ecore_path_group_new(); @@ -22,12 +22,11 @@ int enna_module_init(void) enna_log (ENNA_MSG_INFO, NULL, "Plugin Directory: %s", PACKAGE_LIB_DIR"/enna/modules/"); l = ecore_plugin_available_get(path_group); - ecore_list_first_goto(l); enna_log(ENNA_MSG_INFO, NULL, "Available Plugins:"); - while ((p = ecore_list_next(l))) - { - enna_log(ENNA_MSG_INFO, NULL, "\t * %s", p); - } + EINA_LIST_FOREACH(path_group->paths, l, p ) + { + enna_log(ENNA_MSG_INFO, NULL, "\t * %s", p ); + } return 0; } return -1; @@ -40,13 +39,10 @@ int enna_module_init(void) int enna_module_shutdown(void) { - Eina_List *l; + Enna_Module *m; - for (l = _enna_modules; l; l = eina_list_remove(l, l->data)) + EINA_LIST_FREE(_enna_modules,m) { - Enna_Module *m; - m = l->data; - if (m->enabled) { enna_log(ENNA_MSG_INFO, NULL, "disable module : %s", m->name); -- 1.6.3.rc4.13.g3536 ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel