forked from enlightenment/efl
now I'm not going to point any fingers here glima, but this was not the proper way to use eina file and broke profile support in elm for the past year or so
SVN revision: 69026
This commit is contained in:
parent
fb2bcea0d0
commit
0688b59a12
|
@ -563,7 +563,7 @@ _elm_config_text_classes_free(Eina_List *l)
|
|||
Eina_List *
|
||||
_elm_config_profiles_list(void)
|
||||
{
|
||||
const Eina_File_Direct_Info *info;
|
||||
Eina_File_Direct_Info *info;
|
||||
Eina_List *flist = NULL;
|
||||
Eina_Iterator *file_it;
|
||||
char buf[PATH_MAX];
|
||||
|
@ -583,6 +583,13 @@ _elm_config_profiles_list(void)
|
|||
|
||||
EINA_ITERATOR_FOREACH(file_it, info)
|
||||
{
|
||||
Eina_Stat st;
|
||||
|
||||
if (eina_file_statat(eina_iterator_container_get(file_it), info, &st))
|
||||
{
|
||||
ERR("this is bad.");
|
||||
continue;
|
||||
}
|
||||
if (info->name_length >= len)
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Reference in New Issue