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:
Mike Blumenkrantz 2012-03-07 20:01:17 +00:00
parent fb2bcea0d0
commit 0688b59a12
1 changed files with 8 additions and 1 deletions

View File

@ -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;