forked from enlightenment/efl
ecore: eina_iterator_free doesn't work on NULL iterator.
SVN revision: 68424
This commit is contained in:
parent
769b35c9c6
commit
4573b902e4
|
@ -821,6 +821,8 @@ ecore_file_ls(const char *dir)
|
||||||
Eina_List *list = NULL;
|
Eina_List *list = NULL;
|
||||||
|
|
||||||
ls = eina_file_direct_ls(dir);
|
ls = eina_file_direct_ls(dir);
|
||||||
|
if (!ls) return NULL;
|
||||||
|
|
||||||
EINA_ITERATOR_FOREACH(ls, info)
|
EINA_ITERATOR_FOREACH(ls, info)
|
||||||
{
|
{
|
||||||
char *f;
|
char *f;
|
||||||
|
|
Loading…
Reference in New Issue