raster pushed a commit to branch master.
commit 6cd17aec69f2f772642a0373969bf03239c98996
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date: Thu Apr 18 12:50:06 2013 +0900
fix: removing list node from list WHILE walking list without using the
foreach_safe.. fix.. use foreach_safe.
---
src/bin/e_int_menus.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/bin/e_int_menus.c b/src/bin/e_int_menus.c
index 7c236f6..0d916ca 100644
--- a/src/bin/e_int_menus.c
+++ b/src/bin/e_int_menus.c
@@ -715,12 +715,12 @@ static Eina_Bool
_e_int_menus_app_config_append(Efreet_Desktop *desktop)
{
E_Int_Menu_Applications *ma, *cma;
- Eina_List *l;
+ Eina_List *l, *l_next;
if (!desktop) return EINA_TRUE;
cma = _e_int_menus_app_config_set(desktop);
- EINA_LIST_FOREACH(e_config->menu_applications, l, ma)
+ EINA_LIST_FOREACH_SAFE(e_config->menu_applications, l, l_next, ma)
{
if ((!strcmp(ma->orig_path, cma->orig_path)) && (ma->load_time ==
cma->load_time))
return ma->exec_valid;
--
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter