forked from enlightenment/enlightenment
ecore_list looping isn't optimal, IMHO
SVN revision: 14200
This commit is contained in:
parent
2791263d08
commit
d1e1c0de74
|
@ -576,7 +576,8 @@ _e_app_dir_file_list_get(E_App *a)
|
|||
}
|
||||
if (len > 0)
|
||||
{
|
||||
while ((file = ecore_list_next(files)))
|
||||
ecore_list_goto_first(files);
|
||||
while ((file = ecore_list_current(files)))
|
||||
{
|
||||
if (!strcmp(buf, file))
|
||||
{
|
||||
|
@ -584,6 +585,7 @@ _e_app_dir_file_list_get(E_App *a)
|
|||
free(file);
|
||||
break;
|
||||
}
|
||||
ecore_list_next(files);
|
||||
}
|
||||
ecore_list_append(files2, strdup(buf));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue