ecore_list looping isn't optimal, IMHO

SVN revision: 14200
This commit is contained in:
sebastid 2005-04-14 13:31:16 +00:00 committed by sebastid
parent 2791263d08
commit d1e1c0de74
1 changed files with 4 additions and 2 deletions

View File

@ -576,7 +576,8 @@ _e_app_dir_file_list_get(E_App *a)
} }
if (len > 0) if (len > 0)
{ {
while ((file = ecore_list_next(files))) ecore_list_goto_first(files);
while ((file = ecore_list_current(files)))
{ {
if (!strcmp(buf, file)) if (!strcmp(buf, file))
{ {
@ -584,6 +585,7 @@ _e_app_dir_file_list_get(E_App *a)
free(file); free(file);
break; break;
} }
ecore_list_next(files);
} }
ecore_list_append(files2, strdup(buf)); ecore_list_append(files2, strdup(buf));
} }