summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2012-02-24 16:53:51 +0000
committerCedric BAIL <cedric.bail@free.fr>2012-02-24 16:53:51 +0000
commit4573b902e4f6c2211b109dffb00b10a5c7e93429 (patch)
tree8eb17c995ebe10b5806c0497e6bc4a3d11ce5887 /legacy/ecore/src/lib
parent769b35c9c61a19928a96b72c6bcb2e957e820dd2 (diff)
ecore: eina_iterator_free doesn't work on NULL iterator.
SVN revision: 68424
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_file/ecore_file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/legacy/ecore/src/lib/ecore_file/ecore_file.c b/legacy/ecore/src/lib/ecore_file/ecore_file.c
index cfbf2b53a2..cb037178cd 100644
--- a/legacy/ecore/src/lib/ecore_file/ecore_file.c
+++ b/legacy/ecore/src/lib/ecore_file/ecore_file.c
@@ -821,6 +821,8 @@ ecore_file_ls(const char *dir)
821 Eina_List *list = NULL; 821 Eina_List *list = NULL;
822 822
823 ls = eina_file_direct_ls(dir); 823 ls = eina_file_direct_ls(dir);
824 if (!ls) return NULL;
825
824 EINA_ITERATOR_FOREACH(ls, info) 826 EINA_ITERATOR_FOREACH(ls, info)
825 { 827 {
826 char *f; 828 char *f;