From 6cd17aec69f2f772642a0373969bf03239c98996 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Thu, 18 Apr 2013 12:50:06 +0900 Subject: [PATCH] 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; -- 2.7.4